Pure python AUI: Make behavior in all platforms more equal. This also reduces flicker, reduces number of code lines by removing platform exception.

This commit is contained in:
Jorge Moraleda
2023-11-11 19:22:03 -05:00
parent 11c4a77788
commit 9084de5a6f

View File

@@ -6141,11 +6141,8 @@ class AuiManager(wx.EvtHandler):
return self._dock_constraint_x, self._dock_constraint_y
def Update(self):
if '__WXGTK__' in wx.PlatformInfo:
wx.CallAfter(self.DoUpdate)
else:
self.DoUpdate()
wx.CallAfter(self.DoUpdate)
def DoUpdateEvt(self, evt):
self.Unbind(wx.EVT_WINDOW_CREATE)
wx.CallAfter(self.DoUpdate)