[python-win32] wx.Frame with windows parent

Christian K. ckkart at hoc.net
Tue Jun 4 13:39:33 CEST 2013


Hi,
I asked this some time ago on the wxpython list and still have no solution:

I am trying to make a wx.Dialog float on a non-wxpython parent. I get 
the HWND of the window, call wx.Window_FromHWND(None, HWND) and open the 
dialog with that parent and FLOAT_ON_PARENT style. This works very well 
but suprisingly, it prevents the parent frame (in this case Outlook) 
from closing when clicking on the window's close button.
Actually this happens right after calling wx.Window_FromHWND, i.e. 
before opening/attaching the child window. After that the close button 
is no working anymore.
Is that to be expected? How can I possibly avoid that?

This happens with wxpython 2.8.12.1 and latest pywin32 on windows 7 (32bit)

Regards, Christian



More information about the python-win32 mailing list