Hi
I got this error when trying to add a child to an item of a treectrl:
'TreeCtrl_AppendItem', expected argument 2 of type 'wxTreeItemId const
&'
I just do: self.leftList.AppendItem(var1, var2)
var1 et var2 are just 2 strings, and leftList is my treectrl.
I don't have this error when adding the same way an item to the root
of the treectrl...
Don't understand.
Help me please to solve this issue! Thank you!
Cody
2
Hi,
Hi
I got this error when trying to add a child to an item of a treectrl:
'TreeCtrl_AppendItem', expected argument 2 of type 'wxTreeItemId const
&'
I just do: self.leftList.AppendItem(var1, var2)
var1 et var2 are just 2 strings, and leftList is my treectrl.
I don't have this error when adding the same way an item to the root
of the treectrl...
Don't understand.
Between the documentation and the exception message you should have
your answer...
print wx.TreeCtrl.AppendItem.__doc__
AppendItem(self, TreeItemId parent, String text, int image=-1,
int selectedImage=-1,
TreeItemData data=None) -> TreeItemId
First argument is the TreeItemId of the new items parent node, second
argument is the display text.
Cody
ยทยทยท
On Thu, Mar 17, 2011 at 2:59 PM, stephane <stephanehnzr@gmail.com> wrote:
It's hard for my brain... But i'm gonna try to understand.
Thanks again for your precious help Cody!