wxPython中命令事件的get()
属性与getid()
一样,是什么?
答案 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']