Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wx.agw.aui: don't uninitialize the AuiManager if the window close event is vetoed #2460

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

tmszi
Copy link
Contributor

@tmszi tmszi commented Sep 22, 2023

Fixes #2313.

Ssucessfully tested with wxPython demo example wxPython-demo-4.2.1/demo/agw/AUI.py file with modified AuiFrame() class OnClose() close event method handler.

    def OnClose(self, event):
       dlg = wx.MessageDialog(
            self,
            'Do you really want to close this window?',
            'Confirm',
            wx.YES_NO | wx.NO_DEFAULT | wx.ICON_QUESTION
       ).ShowModal()
       if dlg == wx.ID_NO:
           event.Veto()
           return
       self.timer.Stop()
       event.Skip()

tmszi added a commit to tmszi/grass that referenced this pull request Sep 22, 2023
Which override base OnClose window close event handler method
to prevent prematurely uninitialize manager.

wxWidgets/Phoenix#2460
tmszi added a commit to OSGeo/grass that referenced this pull request Sep 26, 2023
…3177)

* wxGUI/main_window: add and use custom SingleWindowAuiManager class

Which override base OnClose window close event handler method
to prevent prematurely uninitialize manager.

wxWidgets/Phoenix#2460

* Update the package documentation class list
tmszi added a commit to tmszi/grass that referenced this pull request Sep 26, 2023
…SGeo#3177)

* wxGUI/main_window: add and use custom SingleWindowAuiManager class

Which override base OnClose window close event handler method
to prevent prematurely uninitialize manager.

wxWidgets/Phoenix#2460

* Update the package documentation class list
tmszi added a commit to tmszi/grass that referenced this pull request Sep 26, 2023
…SGeo#3177)

* wxGUI/main_window: add and use custom SingleWindowAuiManager class

Which override base OnClose window close event handler method
to prevent prematurely uninitialize manager.

wxWidgets/Phoenix#2460

* Update the package documentation class list
landam pushed a commit to landam/grass that referenced this pull request Oct 25, 2023
…SGeo#3177)

* wxGUI/main_window: add and use custom SingleWindowAuiManager class

Which override base OnClose window close event handler method
to prevent prematurely uninitialize manager.

wxWidgets/Phoenix#2460

* Update the package documentation class list
neteler pushed a commit to nilason/grass that referenced this pull request Nov 7, 2023
…SGeo#3177)

* wxGUI/main_window: add and use custom SingleWindowAuiManager class

Which override base OnClose window close event handler method
to prevent prematurely uninitialize manager.

wxWidgets/Phoenix#2460

* Update the package documentation class list
Copy link

@tatarize tatarize left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked this and the problem being fixed is entirely valid.

@swt2c swt2c merged commit 525dd03 into wxWidgets:master Dec 18, 2023
10 of 21 checks passed
HuidaeCho pushed a commit to HuidaeCho/grass that referenced this pull request Jan 9, 2024
…SGeo#3177)

* wxGUI/main_window: add and use custom SingleWindowAuiManager class

Which override base OnClose window close event handler method
to prevent prematurely uninitialize manager.

wxWidgets/Phoenix#2460

* Update the package documentation class list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AGW AUI unusable after vetoing close event
3 participants