Type Object of wxPython Control

Neotaku neotaku at free.fr
Tue Apr 24 03:32:51 EDT 2001


    Do you know if in wxPython Objects there is a free property like the Tag
property in visual basic where you can put anything you want ?

"Robin Dunn" <robin at stop.spam.alldunn.com> a écrit dans le message news:
oG_E6.2$GdX.2818226 at news.randori.com...
> >
> >     but the "print type(object)" give type-instance and i want it to
tell
> me
> > it is "wxStaticBox" or "wxWindows" or "wxButton"...how can i do that ?
>
> Normally you would do object.__class__.__name__ but currently in wxPython
> that will give you "wxWindow" because of the way SWIG is wrapping a new
> shadow object around the C++ pointer. I expect to have either a workaround
> or an actuall fix in place for the first or second 2.3.x release.
>
>
> --
> Robin Dunn
> Software Craftsman
> robin at AllDunn.com       Java give you jitters?
> http://wxPython.org      Relax with wxPython!
>
>
>
>




More information about the Python-list mailing list