I had some bad experience with wxTreeCtrl.SetPyData(). When i use it
several times to same tree item i got:
"Fatal Python error: PyThreadState_Get: no current thread"
It shows at third to fifth call.
data = self.tree.GetItemData( ni )
data.SetData( s )
Gives me same error. Solution was to use:
self.tree.SetItemData( ni, wxTreeItemData( s ) )
I had some bad experience with wxTreeCtrl.SetPyData(). When i use it
several times to same tree item i got:
"Fatal Python error: PyThreadState_Get: no current thread"
It shows at third to fifth call.
data = self.tree.GetItemData( ni )
data.SetData( s )
Gives me same error. Solution was to use:
self.tree.SetItemData( ni, wxTreeItemData( s ) )