[wxPython-users] Which style of event binding to use?

Wesley Brooks wesbrooks at gmail.com
Tue May 15 02:13:41 PDT 2007


Users, Andrea,

Very sorry, didn't see that one on my short search! One of those
things I've been meaning to ask for the past couple of years but never
got around to doing. Thanks for the link.

Wesley Brooks

On 15/05/07, Andrea Gavana <andrea.gavana at gmail.com> wrote:
> Hi Wesley,
>
> On 5/15/07, Wesley Brooks wrote:
> > Duing my use and learning of wxPython I've come across two different
> > styles of event binding and would like two know which of the following
> > is the 'prefered' option.
> >
> > self.Cancel.Bind(wx.EVT_BUTTON, self.OnCancel,id=self.CANCEL)
> > wx.EVT_BUTTON(self, self.CANCEL, self.OnCancel)
> >
> > Is it just personal choice or is one of the above methods likely to be
> > written out of wxPython? Are there any beneifits of using either
> > method? As far as I can see they both do the same thing!
>
> I believe this page is the right one for you:
>
> http://wiki.wxpython.org/self.Bind_vs._self.button.Bind
>
> :-D
>
> Andrea.
>
> "Imagination Is The Only Weapon In The War Against Reality."
> http://xoomer.virgilio.it/infinity77/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
>
>




More information about the wxpython-users mailing list