[wxPython-users] widget suggestion / question
Mark Erbaugh
mark at microenh.com
Mon Dec 3 12:18:59 PST 2007
On Mon, 2007-12-03 at 12:08 -0800, Robin Dunn wrote:
> Or continue to use -1 and then use one of these approaches:
>
> * save the auto-generated ID using something like "self.btn1id =
> btn1.GetId()" and then test if the event id is equal to self.btn1id.
>
> * just test it in the handler, like "if evt.GetId() ==
> self.btn1.GetId():..."
>
> * or you can get the object that sent the event with
> evt.GetEventObject() and test if it is the button object in question.
All good ideas. Thanks.
Mark
More information about the wxpython-users
mailing list