RE: An array of clickable widgets
Steve Barnes <[email protected]> Sun, 8 Nov 2020 07:08:38 +0000
| Newsgroups | gmane.comp.python.wxpython |
|---|---|
| Message-ID | <VI1PR03MB447919C776EEDB8F3B2F6CD39BEB0@VI1PR03MB4479.eurprd03.prod.outlook.com> |
Phil, You could use a simple wx.Grid with empty cells, zero hight header and zero width row labels (or both invisible if that is an option) then bind to the SelectCell event. The GridSimple demo shows how to catch all of the various events. Steve -----Original Message----- From: [email protected] <[email protected]> On Behalf Of Phil Sent: 08 November 2020 06:01 To: [email protected] Subject: [wxPython-users] An array of clickable widgets Thank you for reading this. I have a two dimensional array of squares displayed on a panel and I'd like to have those squares bound to a mouse click. I could build an array of buttons but I'd much rather have some sort of blank square widget. So, is there such a widget (I haven't found one) or is this a job for a custom widget? At the moment I have a complicated arrangement of tracking where the mouse is on the panel. There has to be a better method. -- Regards, Phil -- You received this message because you are subscribed to the Google Groups "wxPython-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/9a9abb9d-c4e6-4e61-e25a-fc8e85cbcce4%40gmail.com. -- You received this message because you are subscribed to the Google Groups "wxPython-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/VI1PR03MB447919C776EEDB8F3B2F6CD39BEB0%40VI1PR03MB4479.eurprd03.prod.outlook.com.