Re: actual ID on treectrl
dennis <[email protected]> Mon, 7 Feb 2022 19:36:32 -0500
| Newsgroups | gmane.comp.python.wxpython |
|---|---|
| Message-ID | <CAJXhtKL2gBXYhLQEwNWKrMxNP-Lx1UmO1ySOAJJ1k1AcAovg7Q@mail.gmail.com> |
--0000000000004613d905d776e98f
Content-Type: text/plain; charset="UTF-8"
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
On Sat, Feb 5, 2022 at 6:42 PM Nathan smith <[email protected]> wrote:
> Hi!
>
>
> I have a feeling I'm missing something supremely obvious.
>
> self.comments.AppendItem
>
> Returns a treeItemID
>
> but what I want is an actual item ID, like that returned by
> event.GetId() from a listctrl.
>
>
> thanks
>
> Nathan
>
> --
> 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/bab27e0b-0238-5a8e-e90c-0c2147366424%40gmail.com
> .
>
--
*Systems Engineer Global Credit Card Processing at Planet
<http://www.linkedin.com/pub/dennis-spera/34/810/1a8/>*
*Planet Payment, Inc.*
*600 Old Country Rd Rm 207*
*Garden City, NY, 11530-2011 United States*
Dennis Spera
<http://www.linkedin.com/pub/dennis-spera/34/810/1a8/>
--
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/CAJXhtKL2gBXYhLQEwNWKrMxNP-Lx1UmO1ySOAJJ1k1AcAovg7Q%40mail.gmail.com.
--0000000000004613d905d776e98f
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon=
t-family:monospace;font-size:large;color:rgb(102,102,102)">maybe this is wh=
at he is looking for</div><div class=3D"gmail_default" style=3D"font-family=
:monospace;font-size:large;color:rgb(102,102,102)"><br></div><div class=3D"=
gmail_default" style=3D"font-family:monospace;font-size:large;color:rgb(102=
,102,102)"><pre style=3D"color:rgb(0,0,0);font-family:Consolas;font-size:9.=
8pt"><span style=3D"color:rgb(0,0,128);font-weight:bold">def </span>onTreeR=
ightClick(<span style=3D"color:rgb(148,85,141)">self</span>, event, gui):<b=
r> cf =3D currentframe()<br> filename =3D getframeinfo(cf).filename<b=
r> <span style=3D"color:rgb(148,85,141)">self</span>.trace(sys._getframe=
().f_code.co_name, cf.f_lineno, getframeinfo(cf).filename)<br><br> child=
=3D event.GetItem() <---- return item reference</pre></div></div></div>=
<br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Sat=
, Feb 5, 2022 at 6:42 PM Nathan smith <<a href=3D"mailto:lordvador321@gm=
ail.com">[email protected]</a>> wrote:<br></div><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg=
b(204,204,204);padding-left:1ex">Hi!<br>
<br>
<br>
I have a feeling I'm missing something supremely obvious.<br>
<br>
self.comments.AppendItem<br>
<br>
Returns a treeItemID<br>
<br>
but what I want is an actual item ID, like that returned by <br>
event.GetId() from a listctrl.<br>
<br>
<br>
thanks<br>
<br>
Nathan<br>
<br>
-- <br>
You received this message because you are subscribed to the Google Groups &=
quot;wxPython-users" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:wxpython-users%[email protected]" ta=
rget=3D"_blank">[email protected]</a>.<br>
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/d/msgid/wxpython-users/bab27e0b-0238-5a8e-e90c-0c2147366424%40gmail.com"=
rel=3D"noreferrer" target=3D"_blank">https://groups.google.com/d/msgid/wxp=
ython-users/bab27e0b-0238-5a8e-e90c-0c2147366424%40gmail.com</a>.<br>
</blockquote></div><br clear=3D"all"><div><br></div>-- <br><div dir=3D"ltr"=
class=3D"gmail_signature"><div dir=3D"ltr"><div><div><img src=3D"https://d=
ocs.google.com/uc?export=3Ddownload&id=3D12mStt91mcAmPSj5crS5xB6L3VaTeR=
yV3&revid=3D0BxyGIbQSRM4UMmcvY1piaGw3NTNtalRwanVKQXVrNTdpYklnPQ">=C2=A0=
<br></div><span style=3D"color:rgb(204,204,204)"><b><font face=3D"monospace=
"><a href=3D"http://www.linkedin.com/pub/dennis-spera/34/810/1a8/" target=
=3D"_blank">Systems Engineer Global Credit Card Processing at Planet</a><br=
></font></b></span></div><div><div><font color=3D"#cccccc" face=3D"monospac=
e"><b>Planet Payment, Inc.</b></font></div><div><font color=3D"#cccccc" fac=
e=3D"monospace"><b>600 Old Country Rd Rm 207</b></font></div><div><font col=
or=3D"#cccccc" face=3D"monospace"><b>Garden City, NY, 11530-2011=C2=A0 Unit=
ed States</b></font></div></div><div><span style=3D"color:rgb(204,204,204)"=
><b><font face=3D"monospace"><img src=3D"https://drive.google.com/uc?id=3D1=
PQhfcW_US5aTxn654QFWOU_0gxC3yxoB&export=3Ddownload"><br></font></b></sp=
an></div><font face=3D"monospace">Dennis Spera</font><br><div><font color=
=3D"#cccccc" face=3D"monospace"><b><br></b></font>=C2=A0 <a href=3D"http://=
www.linkedin.com/pub/dennis-spera/34/810/1a8/" target=3D"_blank"> </a><br>=
<br><div><div><div><div><br><br></div></div></div></div></div></div></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;wxPython-users" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">wxpy=
[email protected]</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/d/msgid/wxpython-users/CAJXhtKL2gBXYhLQEwNWKrMxNP-Lx1UmO1ySOAJJ1k1AcAovg=
7Q%40mail.gmail.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.=
google.com/d/msgid/wxpython-users/CAJXhtKL2gBXYhLQEwNWKrMxNP-Lx1UmO1ySOAJJ1=
k1AcAovg7Q%40mail.gmail.com</a>.<br />
--0000000000004613d905d776e98f--