This file contains the SVN revision history for auibook, at revision 69295.
Available information include commit date, the name of the committer, the file size, the SVN log messages and a diff from the previous version (if available).
The following log message was entered by the committer:
AuiNotebook: applied workaround from Cody Precord to fix a wrong tab index when the book has been split.
Version SVN diff:
--- wxPython/3rdParty/AGW/agw/aui/auibook.py 2011/09/29 19:16:48 69232
+++ wxPython/3rdParty/AGW/agw/aui/auibook.py 2011/10/02 20:22:37 69295
@@ -382,7 +382,7 @@
self.dispatched = 0
self.label = ""
self.editCancelled = False
-
+ self.page = None
def SetSelection(self, s):
"""
@@ -484,6 +484,8 @@
self.label = label
+ Page = property(lambda self: self.page,
+ lambda self, page: setattr(self, 'page', page))
Selection = property(lambda self: self.GetSelection(), lambda self, sel: self.SetSelection(sel))
# ----------------------------------------------------------------------
@@ -2077,7 +2079,8 @@
if wnd:
e = AuiNotebookEvent(wxEVT_COMMAND_AUINOTEBOOK_TAB_RIGHT_UP, self.GetId())
e.SetEventObject(self)
- e.SetSelection(self.GetIdxFromWindow(wnd))
+ e.Selection = self.GetIdxFromWindow(wnd)
+ e.Page = wnd
self.GetEventHandler().ProcessEvent(e)
elif not self.ButtonHitTest(x, y):
e = AuiNotebookEvent(wxEVT_COMMAND_AUINOTEBOOK_BG_RIGHT_UP, self.GetId())
@@ -2099,6 +2102,7 @@
e = AuiNotebookEvent(wxEVT_COMMAND_AUINOTEBOOK_TAB_RIGHT_DOWN, self.GetId())
e.SetEventObject(self)
e.SetSelection(self.GetIdxFromWindow(wnd))
+ e.Page = wnd
self.GetEventHandler().ProcessEvent(e)
elif not self.ButtonHitTest(x, y):
e = AuiNotebookEvent(wxEVT_COMMAND_AUINOTEBOOK_BG_RIGHT_DOWN, self.GetId())
@@ -2120,6 +2124,7 @@
e = AuiNotebookEvent(wxEVT_COMMAND_AUINOTEBOOK_TAB_DCLICK, self.GetId())
e.SetEventObject(self)
e.SetSelection(self.GetIdxFromWindow(wnd))
+ e.Page = wnd
self.GetEventHandler().ProcessEvent(e)
elif not self.ButtonHitTest(x, y):
e = AuiNotebookEvent(wxEVT_COMMAND_AUINOTEBOOK_BG_DCLICK, self.GetId())