wxPython: How can I get window's HANDLE in wxPython.

Paul McNett p at ulmcnett.com
Thu Jul 3 05:55:26 CEST 2008

Leo Lee wrote:
> I need a window's handle to be passed to external c++.
> Thanks in advance 

import wx

GetHandle(*args, **kwargs) unbound wx._core.Window method
     GetHandle(self) -> long

     Returns the platform-specific handle (as a long integer) of the
     physical window.  On wxMSW this is the win32 window handle, on wxGTK
     it is the XWindow ID, and on wxMac it is the ControlRef.


More information about the Python-list mailing list