ShowFullScreen and check menu item

Hello!

I have a problem (simple program you can download here - https://drive.google.com/open?id=0B3aHxEQthh3laUtLc25sN1F6ck0 ).

I have a window with MenuBar with single menu item - FullScreen and hot key F11. The window contains TextCtrl to print the Checked menu item property.

  • Press F11 (window switch to full screen mode). In TextCtrl will be added “True” string.

  • Press F11 (window returns to normal mode). In TextCtrl will be added “False” string.

  • Repeat pressing F11, but window not switch to full screen mode and in TextCtrl will be added “False” only. Menu item with mouse is OK.

OS - Ubuntu 16.04, Unity.

wxPython 3.0.2

Under Windows is all right.

I think you need an 'event.Skip()' at the end of _onFullScreen(). The event not being passed up the stack seems to be preventing the checkmark from being drawn on GTK.

Scott

···

On Fri, 27 May 2016, jenyay wrote:

Hello!

I have a problem (simple program you can download here -
https://drive.google.com/open?id=0B3aHxEQthh3laUtLc25sN1F6ck0 ).

I have a window with MenuBar with single menu item - FullScreen and hot key
F11. The window contains TextCtrl to print the Checked menu item property.

* Press F11 (window switch to full screen mode). In TextCtrl will be added
"True" string.
* Press F11 (window returns to normal mode). In TextCtrl will be added
"False" string.
* Repeat pressing F11, but window not switch to full screen mode and in
TextCtrl will be added "False" only. Menu item with mouse is OK.

OS - Ubuntu 16.04, Unity.
wxPython 3.0.2

Under Windows is all right.

Hello!

I think you need an 'event.Skip()' at the end of _onFullScreen().
The event not being passed up the stack seems to be preventing the
checkmark from being drawn on GTK.

Thank for the idea. With and 'event.Skip()' the window return to full
screen, but the '_onFullScreen()' method has been invoked several
times. This is not a problem, but it is not clear why this is so.

···

--
Eugene Ilin