Re: How to create my own wx.TreeCtrl events?
Scott Talbert <[email protected]>
| Newsgroups | gmane.comp.python.wxpython |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 12 Jul 2020, Matt Kimberling wrote: > Hello, > I would like to manually create a wxEVT_TREE_STATE_IMAGE_CLICK event for > my wx.TreeCtrl. > > > When I try to create the event: > > event = wx.TreeEvent( wx.wxEVT_TREE_STATE_IMAGE_CLICK, treeCtrl, > treeCtrl.GetId() ) > > I get an exception > TypeError: TreeEvent(): arguments did not match > any overloaded call: > > overload 1: argument 3 has unexpected type > 'int' > > overload 2: argument 1 has unexpected type > 'int' The 3rd argument should be a wx.TreeItemId not the ID of your TreeCtrl. Scott -- 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/alpine.DEB.2.21.2007121401430.21764%40bear.techie.net.