[wxPython-users] Bound Methods
António Barbosa (GN/dpi)
ab at jn.pt
Tue Feb 27 10:56:19 PST 2007
Hi Murat
Yes you are right.
I even had that idea, but it doesn't work in a script from some else ;)
And it will pollute the locals() with a lot of stuff that it will be necessary ONLY in DEBUG MODE.
Thanks, anyway.
It is a pity not having that facility: it would be a great tool, because of the lack of a complete environment IDE for python.
I'm using WxGlade to do the UI, and DrPython to edit the scripts, and I'm quite happy. With that «introspection-tool» I would be happier ;)
Cheers
Antonio Barbosa
-----Original Message-----
From: Murat Erten [mailto:murerten at gmail.com]
Sent: terça-feira, 27 de Fevereiro de 2007 18:07
To: wxPython-users at lists.wxwidgets.org
Subject: Re: [wxPython-users] Bound Methods
.......
But maybe while you bind an event to a widget you can do this:
button = wx.Button(frame)
button.bound_methods = list()
...
button.Bind(wx.EVT_BUTTON, func1)
button.bound_methods.append(func1)
If you can get the button object you can get the methods you bind to
it like that.
More information about the wxpython-users
mailing list