Re: How to get a click event on static bitmap
"Brendan Simon (eTRIX)" <[email protected]>
| Newsgroups | gmane.comp.python.wxglade |
|---|---|
| Organization | eTRIX pty ltd |
| Message-ID | <[email protected]> |
On 9/7/18 6:48 am, Dietmar Schwertberger wrote: > On 7/8/2018 9:52 PM, Dietmar Schwertberger wrote: >> self.Bind(wx.EVT_LEFT_DOWN,self.OnLeftDown) > > This should rather read: > > bitmap.Bind( wx.EVT_LEFT_DOWN, self.mouse_event ) > I did find the `self.Bind(wx.EVT_LEFT_DOWN, self.OnLeftDown)` solution via google, but it didn't feel right as I figured it would be triggered with a click anywhere on the window. But obviously I wasn't thinking clearly enough to figure out `bitmap.Bind()` was an option. Cheers, Brendan. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ wxGlade-general mailing list wxGlade-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/wxglade-general