title: How to auto indent after curly braces in tkinter textbox
body: <p>How to implement this formatting in tkinter textbox?</p>
  <p>I want to get the text in the textbox like this:</p>
  <pre><code>{
      {
          { (enter key pressed after this left brace)
              text 1
              
          } (enter key pressed after this right brace)
          text 2
      }
  }
  </code></pre>
  <p>After writing some text after text 2 if I wish to write some more text after text 1 then I want to get the same indentation that of text 1. How to do this?</p>