The following snippets are pasted from Wing's Interactive Debug Probe on
two versions of WxPython, both running the same code but slightly
different data with Windows 2000 SP4.
wx.__version__
'2.5.3.1rc2'
self.choice.GetSelection()
11
self.choice.GetString(11)
'Starch (mse)'
self.choice.GetClientData(11)
(130, 'grams')
event.GetSelection()
11
event.GetString()
'Starch (mse)'
event.GetClientData()
Attribute not found: 'CommandEvent' object has no attribute
'GetClientData'
But, with Version 2.4.2.3
wx.__version__
Attribute not found: 'module' object has no attribute
'__version__'
self.choice.GetSelection()
11
self.choice.GetString(11)
'Potassium (K)'
self.choice.GetClientData(11)
(202, 'millimols')
event.GetSelection()
11
event.GetString()
'Potassium (K)'
event.GetClientData()
(202, 'millimols')
event
<wxPython.events.wxCommandEventPtr instance; proxy of C++ wxCommandEvent
instance at _12df04_wxCommandEvent_p>
Regards,
David Hughes
Forestfield Software
www.foresoft.co.uk