CommandEvent的属性

时间:2009-06-26 12:58:45

标签: wxpython

wxPython中命令事件的get()属性与getid()一样,是什么?

2 个答案:

答案 0 :(得分:1)

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

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

从超类中继承的那些:

wxEvent::GetEventObject
wxEvent::GetEventType
wxEvent::GetId
wxEvent::GetSkipped
wxEvent::GetTimestamp

答案 1 :(得分:0)

如果您没有可用的文档,请使用python打印所有Get方法

>>> print [c for c in dir(wx.CommandEvent) if c.startswith('Get') ]
它打印出来 ['GetClassName','GetClientData','GetClientObject','GetEventObject',  'GetEventType','GetExtraLong','GetId','GetInt','GetSelection','GetSkipped','GetString','GetTimestamp']