mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 01:30:07 +01:00
Multiple bugfixes in pure python aui
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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]:
|
||||
|
||||
Reference in New Issue
Block a user