From a28b4cc1faa6ef839f62ab2fec3656bccb0693b7 Mon Sep 17 00:00:00 2001 From: Paul McCarthy Date: Mon, 29 May 2017 22:40:23 +0100 Subject: [PATCH] Only run DoUpdate if the managed window exists. --- wx/lib/agw/aui/framemanager.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wx/lib/agw/aui/framemanager.py b/wx/lib/agw/aui/framemanager.py index a887bdc1..5d10711f 100644 --- a/wx/lib/agw/aui/framemanager.py +++ b/wx/lib/agw/aui/framemanager.py @@ -6360,6 +6360,10 @@ class AuiManager(wx.EvtHandler): must be called. This construction allows pane flicker to be avoided by updating the whole layout at one time. """ + + if not self.GetManagedWindow(): + return + if '__WXGTK__' in wx.PlatformInfo: self.GetManagedWindow().Freeze() self._hover_button = None