Request to fix wx.ListCtrl.SetItemData()
Jorgen Bodde
jorgen.maillist at gmail.com
Mon May 7 00:09:10 PDT 2007
Hi All,
As follow up to my previous message, about passing client data to
wx.ListCtrl, I would suggest a change in the wxPython binding, as the
int reference in wx.ListCtrl.SetItemData() should be a long. This is
taken from the wxWidgets C++ Help:
wxListCtrl::SetItemData
bool SetItemData(long item, long data)
Could this be safely changed to a long? Or maybe if the existing API
will break too much, reimplement this as wx.ListCtrl.SetItemDataLong()
/ wx.ListCtrl.SetClientData() ?
It is a bit annoying to have to keep a dictionary reference to my
objects, and come up with unique numbers to identify which object I
clicked, while changing the int to a long in wx.ListCtrl.SetItemData
() would allow us to pass object references to the GUI, and be more
consistent with wx.Choice / wx.ComboBox and the likes, which do allow
that.
With regards,
- Jorgen
More information about the wxpython-users
mailing list