Problem with a ComboPopup and a PopupTransientWindow

Hello,

I have a ComboPopup (a generic combobox). In this ComboPopup I create a PopupTransientWindow (after a mouse-click into the ComboPopup).

My problem: Once I have popup’ed the PopupTransientWindow, I cannot close, maximize or minimize the application window and the mouse cannot control the other ui-elements. It seems that it has something to do with the fact that I create the PopupTransientWindow from a ComboPopup, because when I create the PopupTransientWindow in the frame (commented out in the sample-app), it works.

Versions: Windows-Vista, wx 2.8.12.1

Erwin

transientpopup.py (1.61 KB)

Hello,

i found the idea of the ComboCtrl with a transient popup interesting, so i tried if i could get it working. I used the wx-Demo as base. Attached is a script with three versions:

  1. a comboctrl with transient window as popup
  2. a button with transient window popup
  3. a combo ctrl with a popup panel and there a right click will show the transient popup
    1 and 2 works. Number 3 gives an error when trying to open the combo popup a second time. But only when the combo popup were closed before the transient popup were closed.

This is the error message:

Traceback (most recent call last):
File “E:\Programmierung\transientpopup2.py”, line 80, in GetAdjustedSize
return wx.Size(200, 200)
File “C:\Program Files (x86)\Python27\lib\site-packages\wx-2.9.4-msw\wx_core.py”, line 941, in init
core.Size_swiginit(self,core.new_Size(*args, **kwargs))
wx._core.PyAssertionError: C++ assertion “Assert failure” failed at …..\src\common\wincmn.cpp(3197) in DoNotifyWindowAboutCaptureLost(): window that captured the mouse didn’t process wxEVT_MOUSE_CAPTURE_LOST

Maybe one of the more expierenced users can help.

transientpopup2.py (3.37 KB)

···

Torsten

Am Samstag, 11. Mai 2013 14:59:26 UTC+2 schrieb ErwinP:

Hello,

I have a ComboPopup (a generic combobox). In this ComboPopup I create a PopupTransientWindow (after a mouse-click into the ComboPopup).

My problem: Once I have popup’ed the PopupTransientWindow, I cannot close, maximize or minimize the application window and the mouse cannot control the other ui-elements. It seems that it has something to do with the fact that I create the PopupTransientWindow from a ComboPopup, because when I create the PopupTransientWindow in the frame (commented out in the sample-app), it works.

Versions: Windows-Vista, wx 2.8.12.1

Erwin