[wxPython-users] Which style of event binding to use?
Christopher Barker
Chris.Barker at noaa.gov
Tue May 15 09:54:14 PDT 2007
Andrea Gavana wrote:
> 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)
> I believe this page is the right one for you:
>
> http://wiki.wxpython.org/self.Bind_vs._self.button.Bind
And while you're at it:
http://wiki.wxpython.org/wxPython_Style_Guide
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the wxpython-users
mailing list