tags:

views:

64

answers:

2

what are the get()attributes of command event in wxpython just like getid().

A: 

http://docs.wxwidgets.org/stable/wx_wxcommandevent.html#wxcommandevent

wxCommandEvent::GetClientData
wxCommandEvent::GetClientObject
wxCommandEvent::GetExtraLong
wxCommandEvent::GetInt
wxCommandEvent::GetSelection
wxCommandEvent::GetString

And those inherited from its superclass:

wxEvent::GetEventObject
wxEvent::GetEventType
wxEvent::GetId
wxEvent::GetSkipped
wxEvent::GetTimestamp
FogleBird
A: 

if you don't have documentation available justuse python to print all Get methods

>>> print [c for c in dir(wx.CommandEvent) if c.startswith('Get') ]

it prints ['GetClassName', 'GetClientData', 'GetClientObject', 'GetEventObject', 'GetEventType', 'GetExtraLong', 'GetId', 'GetInt', 'GetSelection', 'GetSkipped', 'GetString', 'GetTimestamp']

Anurag Uniyal