[wxPython-users] What's PyData?

Robin Dunn robin at alldunn.com
Fri Dec 1 17:02:19 PST 2006


Frank Niessink wrote:
> Rich Shepard:
>> On Fri, 1 Dec 2006, Frank Niessink wrote:
>>
>>> I'm not sure where it is defined and explained, but as far as I know
>>> pydata can be any python object you like. It's generally used to 
>>> associate
>>> python objects with items in widgets that can contain multiple items.

Correct, more or less.


>>
>>   Well, Frank. That's quite the teaser. :-)
>>
>>   Now I am even more interested in learning when, how, and why to use it
>> (them?). I'm sure there's documentation somewhere.
> 
> In the C++ help file I think it is usually called clientData.

The PyData term comes from wx.TreeCtrl where we have both the original 
SetItemData method that takes a wx.TreeItemData object, and also an 
added SetItemPyData that has been adapted for convenience to take any 
python object and wrap it in a wx.TreeItemData


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list