Re: Aw: Re: actual ID on treectrl
Nathan smith <[email protected]> Wed, 9 Feb 2022 02:24:12 +0000
| Newsgroups | gmane.comp.python.wxpython |
|---|---|
| Message-ID | <[email protected]> |
Heya, Yeah, I got around this in the end using getItemData and SetItemData. And just assigned a unique number to each one :) thanks guys. Nathan On 08/02/2022 07:19, Karsten Hilbert wrote: >> maybe this is what he is looking for >> >> def onTreeRightClick( self, event, gui): >> cf = currentframe() >> filename = getframeinfo(cf).filename >> self.trace(sys._getframe().f_code.co_name, cf.f_lineno, getframeinfo(cf).filename) >> >> child = event.GetItem() <---- return item reference > > Perhaps, but then that's the item itself, not an ID thereof (of which there > is none AFAIK). > > Karsten > -- 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/cb1f3a8d-ca90-e34a-d830-9c668f686ca0%40gmail.com.