Multiple bugfixes in pure python aui

This commit is contained in:
Jorge Moraleda
2024-01-18 22:18:01 -05:00
parent b2733b5814
commit e4cb183ff7
2 changed files with 6 additions and 1 deletions

View File

@@ -2457,7 +2457,8 @@ class AuiTabCtrl(wx.Control, AuiTabContainer):
:rtype: :class:`wx.Window`.
"""
if not self:
return None # The AuiTabCtrl has already been destroyed
screen_pt = wx.GetMousePosition()
client_pt = self.ScreenToClient(screen_pt)
return self.TabHitTest(client_pt.x, client_pt.y)

View File

@@ -8435,6 +8435,10 @@ class AuiManager(wx.EvtHandler):
not part.sizer_item.IsShown()):
continue
# don't draw items that have a pane whose window has been deleted
if part.pane and not part.pane.window:
continue
ptype = part.type
if ptype in [AuiDockUIPart.typeDockSizer, AuiDockUIPart.typePaneSizer]: