Bound Methods

António Barbosa (GN/dpi) ab at jn.pt
Mon Feb 26 10:40:30 PST 2007


Hi,

 =


I am playing with =ABintrospection=BB and I would like to know if it is pos=
sible to know which method is bound to a particular object.

Or putting the problem in another form: It's possible to know which object =
is bound to a particular method?

 =


Suppose a window with 2 buttons (bt1 + bt2)

 And:

 bt1.Bind(wx.EVT_BUTTON, self.onButton1)

 bt2.Bind(wx.EVT_BUTTON, self.onButton2)

 =


I can easily identify the two objects, the two methods of their parent and =
the source line where they are defined.

But:

How can I know that onButton1 is bound to bt1 and onButton2 is bound to bt2?

Or:

How can I know that bt1 is bound to onButton1 and  bt2 is bound to onButton=
2?

 =


Any help would be appreciated.

Antonio Barbosa

 =


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200702=
26/85c33c63/attachment.htm


More information about the wxpython-users mailing list