SVN Revision 68881 For toolbar¶This file contains the SVN revision history for toolbar, at revision 68881.
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).
Log Messages¶The following log message was entered by the committer:
AGW: General overhaul of the documentation, much improved. All the widgets have their own sample usage in the docs as well;
FlatNotebook: Added the FNB_NAV_BUTTONS_WHEN_NEEDED style, which hides the navigation left/right arrows if all tabs fit;
RibbonBar: - Added the EVT_RIBBONBAR_TAB_LEFT_DCLICK event, which generates a special event
when a ribbon bar tab is double-clicked;
XLSGrid: a new widget was added to AGW, termed XLSGrid. It’s based on wx.grid.Grid and can be used to faithfully reproduce the appearance of a Microsoft Excel spreadsheets.
Diff To Previous Version (65529)¶Version SVN diff:
--- wxPython/3rdParty/AGW/agw/ribbon/toolbar.py 2010/09/12 11:58:40 65529
+++ wxPython/3rdParty/AGW/agw/ribbon/toolbar.py 2011/08/25 16:40:17 68881
@@ -588,6 +588,11 @@
new_hover = tool
break
break
+
+ if new_hover and new_hover != self._hover_tool:
+ self.SetToolTipString(new_hover.help_string)
+ elif self.GetToolTip() and new_hover != self._hover_tool:
+ self.SetToolTipString("")
if new_hover != self._hover_tool:
if self._hover_tool:
@@ -658,10 +663,13 @@
notification.SetBar(self)
self.ProcessEvent(notification)
- self._active_tool.state &= ~RIBBON_TOOLBAR_TOOL_ACTIVE_MASK
- self._active_tool = None
- self.Refresh(False)
-
+ # Notice that m_active_tool could have been reset by the event handler
+ # above so we need to test it again.
+ if self._active_tool:
+ self._active_tool.state &= ~RIBBON_TOOLBAR_TOOL_ACTIVE_MASK
+ self._active_tool = None
+ self.Refresh(False)
+
def OnMouseEnter(self, event):