[wxPython] Validator for TxtCtrl to trigger with a custom Button handler
loic.mahe at free.fr
Thu Jul 22 10:11:47 CEST 2004
Your solution does not seem work, at least on my system!
Does it works on your system ?
I got a message telling me that:
_myTextCtrl / self.tc has no Validate attribute
I finnaly got a kind of ugly workaround to call the Validate() function:
I had to replace:
I find this quite ugly and not pythoninc at all,
but this is the only solution I found yet!
"F. GEIGER" <franz.geiger at fh-vorarlberg.ac.at> wrote in message news:<40fe5226$0$17706$3b214f66 at aconews.univie.ac.at>...
> def _onButton_(self, event):
> success = self._myTextCtrl.Validate()
> self is the Frame here. _onButton_ therefore belongs to the frame and was
> bound with wx.Button.Bind.
> F. GEIGER
More information about the Python-list