I assume "dataN" is what you like in choice "ClientData", I don't think that there is a method out of the box as "choice.AppendItems" doesn't allow to set the client data.
You could have a derived class from choice and have a method something along these line:
How does the overloaded Set() method work in Python? On the surface it looks like it might do this:
void Set (const wxArrayString &choices, void *clientData)
Clears the list box and adds the given strings to it.
But I'm unsure what *clientData might be in Python (a list of client data?) the docs seem to suggest it might be a C++ array (of what?).
Thanks,
Michael
···
On 10/31/2011 11:03 AM, werner wrote:
I assume "dataN" is what you like in choice "ClientData", I don't think
that there is a method out of the box as "choice.AppendItems" doesn't
allow to set the client data.
You could have a derived class from choice and have a method something
along these line: