wxEvent

Robin Dunn robin at alldunn.com
Tue Nov 7 13:21:45 EST 2000


In article <4ps8u8.62o1.ln at adsl.bapnt>,
  nospam at wanted.com wrote:
> hi all :)
>
> i wonder if that's true:
>
> wxEvent.GetEventObject( ) returns a string instead of
> " the object associated with the event, if any" as mentioned in the
> documentation ?
>
> any ideas?
>

This has been covered several times in the wxPython-users mail list.
Since there is no use for the wxObject class in Python, it was not
wrapped.  Since the type is unknown the SWIG code just returns the
pointer as a string.  If you know what type you are expecting you can
convert it to a new shadow object of the correct type using
wxPyTypeCast.

--
Robin Dunn
Software Craftsman
robin at AllDunn.com
http://wxPython.org     Java give you jitters?
http://wxPROs.com        Relax with wxPython!


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list