auinotebookwithfloatingpages.py
Thanks Frank, I'll use it
Just a small note.
Looks the default drag motion event handler deletes the hint rect. I
got better result when I called Skip() conditionally. I don't know if
it works on all the environments.
路路路
------------------------------
(snip)
self.Bind(wx.aui.EVT_AUINOTEBOOK_DRAG_MOTION,
self.onDragMotion)
self.isOutside = False
def onDragMotion(self, event):
if self.IsMouseWellOutsideWindow():
self.isOutside = True
x, y = wx.GetMousePosition()
hintRect = wx.Rect(x, y, 400, 300)
# Use CallAfter so we overwrite the hint that might be
# shown by our superclass:
wx.CallAfter(self.__auiManager.ShowHint, hintRect)
else:
if self.isOutside:
self.__auiManager.HideHint()
self.isOutside = False
event.Skip()
(snip)