Robin Dunn wrote:
J Ellianef wrote:
Thanks Brian, I'm making progress ....
Now I would like to know if there is a simple way of Unselect(ing) the parent from the child ID.
The Unselect doesn't accept the child ref.
A sort of "self.Unselect(parent) " would be very helpfull .
But I get :
Traceback (most recent call last):
File "F:\$gal\awin.py", line 413, in MenuSelectionCb
self.RemoveItem(item)
File "F:\$gal\awin.py", line 437, in RemoveItem
self.Unselect(parent)
File "D:\Python\Lib\site-packages\wx-2.5.3-msw-unicode\wx\_controls.py", line 5327, in Unselect
return _controls_.TreeCtrl_Unselect(*args, **kwargs)
TypeError: TreeCtrl_Unselect() takes exactly 1 argument (2 given)Unselect will deselect whatever is currently selected, so there is no need to tell it which item. You can also do it by just selecting the item that should be selected instead of the parent.
Ok, it's so simple.....
Many thanks.