[wxPython-users] help creating a bitmap
Christopher Barker
Chris.Barker at noaa.gov
Tue Jan 23 16:09:59 PST 2007
Richard Harding wrote:
> Thanks, that got rid of the border in until it's hovered over. In the
> end I'd rather attach the bitmap without it being a button,
Then don't make it a Button!
self.status_light_button = wx.StaticBitmap(panel,
bitmap=self.status_light)
# but I wouldn't call it a button anymore!
# and you can't bind EVT_BUTTON any more:
self.status_light_button.Bind(wx.EVT_LEFT_DOWN, self.OnStatusChange)
sizer.Add(self.status_light_button)
-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