Oops... I coded it as:
self.SetValue(self.toGUI(<int>))
wxTextCtrl.SetValue(self.toGUI(<int>)
So I thought it was being called 2x improperly.
(Sorry about the noise.)
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?
/Will Sadkin
Parlance Corporation
···
-----Original Message-----
From: Will Sadkin
Sent: Monday, January 13, 2003 5:44 PM
To: 'wxpython-users@lists.wxwindows.org'
Subject: [wxPython-users] Overriding wxTextCtrl .Paste()I have a control derived from wxTextCtrl, and have added a .Paste()
method to override the base control's .Paste. However, when I call
this on an instance, eg. ctl.Paste(), the base control's .SetValue
somehow gets called after my own .Paste() method completes.Can someone tell me why this happens, and how I prevent it?
Thanks in advance,
/Will Sadkin
Parlance Corporation---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwindows.org