'CommandEvent' object has no attribute 'GetClientData'

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

David Hughes wrote:

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.

event.GetClientData()

Attribute not found: 'CommandEvent' object has no attribute 'GetClientData'

Hmm... I wonder what happened to that... I'll track it down.

But, with Version 2.4.2.3

wx.__version__

Attribute not found: 'module' object has no attribute
'__version__'

wx.VERSION and wx.VERSION_STRING exists in both versions. There is also a __version__ in 2.4's wxPython.wx module, but it didn't have the renamer magic applied to it to get it into the wx package, (since it doesn't start with 'wx'.)

ยทยทยท

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