[wxPython] getting HWND from wxWindow

Is it possible under wxPythonMSW to get the window handle corresponding to a wxWindow? Many of the methods implemented in msw/windows.cpp in the wxWindows source call GetHwnd, but this method doesn't seem to be wrapped in wxPython.

I'm trying to write a wxPython application which has to pop up a dialog in front of a window belonging to an external application, and then re-activate that window when the dialog closes. I haven't been able to figure out how to do this with wxPython, so I'm considering resorting to the (admittedly non-portable) win32ui.SetForegroundWindow function from the Python win32 extensions. But before I can do that, I need the window handle...

David

David C. Fox wrote:

Is it possible under wxPythonMSW to get the window handle corresponding to a wxWindow? Many of the methods implemented in msw/windows.cpp in the wxWindows source call GetHwnd, but this method doesn't seem to be wrapped in wxPython.

window.GetHandle()

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!