[wxPython-users] Bound Methods

António Barbosa (GN/dpi) ab at jn.pt
Tue Feb 27 13:32:24 PST 2007


Hi Robin,

Nice tip!

I don't know how can you pay enough attention to ALL of us, pointing always=
 good directions:)

Thanks, I will work on it.
Antonio Barbosa

-----Mensagem original-----
De: Robin Dunn [mailto:robin at alldunn.com]
Enviada: ter 27-02-2007 21:15
Para: wxPython-users at lists.wxwidgets.org
Assunto: Re: [wxPython-users] Bound Methods
 =

Ant=F3nio Barbosa (GN/dpi) wrote:

> With this, I get the name of object that I am inspecting, and a list
> of methods of parent's class.
> =

> What I would like is to show only the relevant methods: - the ones
> that are BOUND to it!
> =

> It is possible?

No, the event table populated by the Bind calls is not exposed to =

wxPython, and is not very accessible from outside the class in C++ either.

One way you could do this is to (optionally) replace the Bind method =

with your own code that keeps track of the methods that are bound as =

event handlers, and then calls the original method.  Python is flexible =

enough that you could do this simply by reassigning wx.EvtHandler.Bind.

-- javascript:SetCmd(cmdSend);
Enviar
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!


---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 3379 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20070=
227/3c0434b8/attachment.bin


More information about the wxpython-users mailing list