Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
オブジェクトのすべてのバインドを表示する方法はありますか?
x=wx.Button(self,-1,"hi") x.Bind(wx.EVT_BUTTON,self.Press) ### print x.ShowAllBindingData() #Function doenst exists [['EVT_BUTTON','Press']]
そのようなものはありますか
いいえ、これは不可能です。可能であれば、Bind()オブジェクト自体を呼び出さなくても、親ウィンドウレベルで処理するなど、さまざまな方法でイベントを処理できるため、あまり役に立ちません(コマンドイベントの場合)。などのみ)またはオブジェクトの上にカスタムイベントハンドラーをプッシュするか(これはおそらくC ++のみですが)仮想ProcessEvent()メソッドを直接オーバーライドします。
Bind()
ProcessEvent()