mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 03:20:08 +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`.
|
:rtype: :class:`wx.Window`.
|
||||||
"""
|
"""
|
||||||
|
if not self:
|
||||||
|
return None # The AuiTabCtrl has already been destroyed
|
||||||
screen_pt = wx.GetMousePosition()
|
screen_pt = wx.GetMousePosition()
|
||||||
client_pt = self.ScreenToClient(screen_pt)
|
client_pt = self.ScreenToClient(screen_pt)
|
||||||
return self.TabHitTest(client_pt.x, client_pt.y)
|
return self.TabHitTest(client_pt.x, client_pt.y)
|
||||||
|
|||||||
@@ -8435,6 +8435,10 @@ class AuiManager(wx.EvtHandler):
|
|||||||
not part.sizer_item.IsShown()):
|
not part.sizer_item.IsShown()):
|
||||||
continue
|
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
|
ptype = part.type
|
||||||
|
|
||||||
if ptype in [AuiDockUIPart.typeDockSizer, AuiDockUIPart.typePaneSizer]:
|
if ptype in [AuiDockUIPart.typeDockSizer, AuiDockUIPart.typePaneSizer]:
|
||||||
|
|||||||
Reference in New Issue
Block a user