It sounds like there may be spaces. yourtext.SetValue('')
I've been caught going back to fields I thought were empty, now I do
textvalue = self.textfield.GetValue().strip()
just to be sure.
···
On Monday 19 May 2008 16:10:41 Mark Erbaugh wrote:
I am developing using wxGTK with wxPython 2.8.7.1.
When I click in an empty wx.TextCtrl, the flashing insertion bar seems
to be where I click rather than at the left edge of the field. It seems
like the control inserts spaces up to that point. Is there a way to make
a click in an empty TextCtrl automatically go to the left edge of the
control.