A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/090178.html below:

Type Object of wxPython Control

Type Object of wxPython Control Type Object of wxPython ControlRobin Dunn robin at stop.spam.alldunn.com
Mon Apr 23 14:41:31 EDT 2001
>
>     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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4