AGW Logo

svn 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).


file_info File Information

  • Commit Date: 18-Nov-2009 22:19:25 UTC
  • Committer: AG
  • File Size: 23925 byte(s)

svn_log 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;

    • Added support for toggle buttons;
    • Improved support for ribbon panel sizers: panels with sizers should now automatically minimise at small sizes, and behave properly when popping up from a minimised state;
    • Added tooltips via SetToolTip for those buttons which have the help_string attribute set.
  • 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.


svn_diff 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):
Tree

Table Of Contents

Previous topic

ribbon.toolbar functions

Next topic

rulerctrl