When the value of a wx.TextCtrl is changed, the event wx.EVT_TEXT is emitted. Calling GetValue() in the event handler returns the new value. Calling GetInsertionPoint() in the event handler returns the new insertion point. Is it possible to get the old value and the old insertion point (before the text change is made)?
I don't believe so. However you could just save off the value and insertion point when the text control is created. These will be an empty string and zero (respectively), I believe.
Then in the EVT_TEXT event handler, you would just update the saved values whenever something changes.
wxPython: Get old value and insertion point in a wx.TextCtrl