Re: Gnome "Quit" menu is like clicking a button in a wxPython modal dialog

Dietmar Schwertberger <[email protected]> Sun, 13 Dec 2020 00:47:09 +0100
Newsgroups gmane.comp.python.wxpython
Message-ID <[email protected]>
I don't find your video particularly helpful. A small code sample plus 
observation would have been much more useful.

What is your actual problem? When you close a dialog via the system menu 
or the close icon of the window decoration, the return value is the same 
as if you hit Cancel or the Escape key.
The return value of dlg.ShowModal() is identical to wx.ID_CANCEL in 
these cases. The Cancel button has the Id wx.ID_CANCEL.

Regards,

Dietmar

On 12.12.2020 22:43, [email protected] wrote:
> If I run a wxPython GUI in Gnome, choosing the "Quit" menu of Gnome 
> Shell (at the top of the screen) has the same effect as if the user 
> would click a button of a wxPython modal dialog. I attached a video 
> that illustrates this. What is going on here? Is there a way to fix 
> this issue?
> -- 
> You received this message because you are subscribed to the Google 
> Groups "wxPython-users" group.
> To unsubscribe from this group and stop receiving emails from it, send 
> an email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/wxpython-users/dd1f90fb-fa42-4111-9ec5-70084f60fffen%40googlegroups.com 
> <https://groups.google.com/d/msgid/wxpython-users/dd1f90fb-fa42-4111-9ec5-70084f60fffen%40googlegroups.com?utm_medium=email&utm_source=footer>.


-- 
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/86b9c908-40cb-47ab-8fcb-f563dbd626e6%40schwertberger.de.