[wxPython-users] Binding mouse clicks to toolbar button
Chris.Barker at noaa.gov
Chris.Barker at noaa.gov
Wed Sep 26 10:00:42 PDT 2007
> Instead of wx.EVT_LEFT_DOWN, try to do something like:
>
> self.Bind(wx.EVT_TOOL, self.OnCloseMe, id=exitbutton.GetId())
Or even better (at least to my eye):
exitbutton.Bind(wx.EVT_TOOL, self.OnCloseMe)
-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