mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 11:30:06 +01:00
Merge pull request #1628 from topic2k/agw_framemanager_closed_pane_event
new event wx.lib.agw.aui.EVT_AUI_PANE_CLOSED
This commit is contained in:
@@ -132,6 +132,7 @@ if wx.Platform == "__WXMSW__":
|
||||
# AUI Events
|
||||
wxEVT_AUI_PANE_BUTTON = wx.NewEventType()
|
||||
wxEVT_AUI_PANE_CLOSE = wx.NewEventType()
|
||||
wxEVT_AUI_PANE_CLOSED = wx.NewEventType()
|
||||
wxEVT_AUI_PANE_MAXIMIZE = wx.NewEventType()
|
||||
wxEVT_AUI_PANE_RESTORE = wx.NewEventType()
|
||||
wxEVT_AUI_RENDER = wx.NewEventType()
|
||||
@@ -148,6 +149,8 @@ wxEVT_AUI_PERSPECTIVE_CHANGED = wx.NewEventType()
|
||||
EVT_AUI_PANE_BUTTON = wx.PyEventBinder(wxEVT_AUI_PANE_BUTTON, 0)
|
||||
""" Fires an event when the user left-clicks on a pane button. """
|
||||
EVT_AUI_PANE_CLOSE = wx.PyEventBinder(wxEVT_AUI_PANE_CLOSE, 0)
|
||||
""" A pane in `AuiManager` is about to be closed. """
|
||||
EVT_AUI_PANE_CLOSED = wx.PyEventBinder(wxEVT_AUI_PANE_CLOSED, 0)
|
||||
""" A pane in `AuiManager` has been closed. """
|
||||
EVT_AUI_PANE_MAXIMIZE = wx.PyEventBinder(wxEVT_AUI_PANE_MAXIMIZE, 0)
|
||||
""" A pane in `AuiManager` has been maximized. """
|
||||
@@ -5080,6 +5083,8 @@ class AuiManager(wx.EvtHandler):
|
||||
if to_destroy:
|
||||
to_destroy.Destroy()
|
||||
|
||||
# Now inform the app that we closed a pane.
|
||||
self.FireEvent(wxEVT_AUI_PANE_CLOSED, pane_info)
|
||||
|
||||
def MaximizePane(self, pane_info, savesizes=True):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user