Re: How to get a click event on static bitmap
Dietmar Schwertberger <[email protected]>
| Newsgroups | gmane.comp.python.wxglade |
|---|---|
| Message-ID | <[email protected]> |
On 7/8/2018 1:38 PM, Brendan Simon (eTRIX) wrote: > I've got a static bitmap in a frame (a logo). I want to open up a > browser page to a url if the user clicks on the image. > > How can I do that with wxglade? There doesn't seem to be an an event > for clicking on a static bitmap image. You can always register a mouse event handler, either in your derived code or on the Code tab of wxGlade. E.g.: self.Bind(wx.EVT_LEFT_DOWN,self.OnLeftDown) In one of the next wxGlade versions you will be able to add arbitrary events to the events tab and there will be a button to add e.g. all mouse or key events. Regards, Dietmar ------------------------------------------------------------------------------ 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