Overriding wxTextCtrl .Paste()

Will Sadkin wrote:
[...]

However, I'm still having trouble setting the selection.
The entire text is subsequently selected, even though
I explicitly call

   self.SetSelection(pos, pos)

where pos is the position the cursor should be at the end
of the pasted text. I don't understand why this is happening
either. Shouldn't this work, and if not why not?

It turns out that this is solvable by changing the above line
to
    wxCallAfter(self.SetSelection, pos, pos)

/Will Sadkin
Parlance Corporation