if (code == 13):
cur_item = event.GetItem()
print self.GetItemText(cur_item)
But the text for the item is empty, even though the item clearly has text in it in the display. Is the event not giving me the correct item, or do I have to do something else to get this to work?
I'm using libwx 2.4, MacPython 2.3a2 with Chandler 0.1 (if that matters).
if (code == 13):
cur_item = event.GetItem()
print self.GetItemText(cur_item)
But the text for the item is empty, even though the item clearly has
text in it in the display. Is the event not giving me the correct
item, or do I have to do something else to get this to work?
I'm using libwx 2.4, MacPython 2.3a2 with Chandler 0.1 (if that
matters).
--
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwindows.org
if (code == 13):
cur_item = event.GetItem()
print self.GetItemText(cur_item)
But the text for the item is empty, even though the item clearly has text in it in the display. Is the event not giving me the correct item, or do I have to do something else to get this to work?
I'm using libwx 2.4, MacPython 2.3a2 with Chandler 0.1 (if that matters).
For some reason the current item is not set for this event. You can test the validity by calling cur_item.Ok().
You can work around this by saving the current item in the EVT_TREE_SEL_CHANGED handler and then using the saved value in the EVT_TREE_KEY_DOWN.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!