title: How to get current cursor position for Text widget
body: <p>I am using an onscreen keyboard to type data for a tkinter based gui.<br>
  I was able to use the entry field to enter, edit data through the onscreen keyboard such as getting current cursor position and length of the string.</p>
  
  <pre><code>temp = self.entry_label.get()
  length_string=len(temp)
  cursor_position = self.entry_label.index(INSERT)
  </code></pre>
  
  <p>But I wish to do the same for a Text widget. I could get the text for Text widget using <code>get()</code> method  and its length but cannot get the current mouse cursor position.</p>
  
  <pre><code>temp=self.new_text.get(1.0, END)
  cursor_position = self.new_text.index(INSERT)
  </code></pre>
  
  <p>Acutally it works and i am able to add character to that poisition  , but after adding character  cursor goes back to origional position , i.e last character</p>