标签: wxpython
wxpython中的示例使用self.Bind。但是这个example使用了self.Widget.Bind变体。 wx.EVT_EVTNAME也有方法Bind。三种事件绑定方法之间的优缺点是什么?
答案 0 :(得分:0)
The wxPython wiki explains the difference between self.Bind and self.widget.Bind. The 3rd method that you mention is extremely old and not recommended. I believe it comes from wxWidgets land.
self.Bind
self.widget.Bind