When to use bind, EVT_***, and connect.

63q2o4i02 at sneakemail.com 63q2o4i02 at sneakemail.com
Tue Aug 15 17:09:33 PDT 2006


Hi, I've been browsing through a lot of online tutorials and stuff, and
when considering how to hook up a control to a function, I confused as
to what the differences are among self.bind(), frame.connect(), and
EVT_BUTTON() or EVT_MENU(), etc.

I've seen this page:
http://wiki.wxpython.org/index.cgi/self.Bind_vs._self.button.Bind and
it mostly makes sense (I just need to practice a few examples to cement
it).  Can someone explain briefly when to use bind, connect, and
EVT_xxx()?  I think they are just style preferences because they all
seem to do the same thing.

thanks
ms







More information about the wx-users mailing list