I think you need EVT_KILL_FOCUS.
James Shaw
···
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
I think you need EVT_KILL_FOCUS.
James Shaw
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
Le Wed, 10 Apr 2002 15:42:15 +0000
"James Shaw" <hertzsprrrung@hotmail.com> écrivait:
I think you need EVT_KILL_FOCUS.
Thanks for the link, it was the good one.
Just one problem now, the focus cannot come back to the field !
class MonPanel(wxPanel):
def __init__(self,win):
wxPanel.__init__(self,win,-1)
t1=wxTextCtrl(self,10,"un",(10,10))
t2=wxTextCtrl(self,20,"deux",(40,40))
EVT_KILL_FOCUS(t1,self.Validate)
def Validate(self,event):
print(str(event))
did i make a mistake or it's a bug ?
I use python2.1 on debian woody with libwxgtk2.2
James Shaw
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users
--
William Dodé - Informaticien Indépendant
http://www.flibuste.net
Le Wed, 10 Apr 2002 21:16:31 +0200
William Dodé <wilk@flibuste.net> écrivait:
Le Wed, 10 Apr 2002 15:42:15 +0000
"James Shaw" <hertzsprrrung@hotmail.com> écrivait:> I think you need EVT_KILL_FOCUS.
>
>
> See
> http://wiki.wxpython.org/index.cgi/Surviving_20with_20wxEVT_5fKILL_5fFOCUS_20under_20Microsoft_20Windows
Thanks for the link, it was the good one.Just one problem now, the focus cannot come back to the field !
I answer to me, maybe it's a bug because on windows it works fine, but i
find a solution, doing an event.Skip()
class MonPanel(wxPanel):
def __init__(self,win):
wxPanel.__init__(self,win,-1)t1=wxTextCtrl(self,10,"un",(10,10))
t2=wxTextCtrl(self,20,"deux",(40,40))
EVT_KILL_FOCUS(t1,self.Validate)def Validate(self,event):
print(str(event))
event.Skip()
did i make a mistake or it's a bug ?
I use python2.1 on debian woody with libwxgtk2.2
>
> James Shaw
>
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
> _______________________________________________
> wxpython-users mailing list
> wxpython-users@lists.wxwindows.org
> http://lists.wxwindows.org/mailman/listinfo/wxpython-users
>--
William Dodé - Informaticien Indépendant
http://www.flibuste.net_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users
--
William Dodé - Informaticien Indépendant
http://www.flibuste.net