AGW Logo

svn SVN Revision 68881 For page

This file contains the SVN revision history for page, 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: 31746 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 (65158)

Version SVN diff:

--- wxPython/3rdParty/AGW/agw/ribbon/page.py        2010/08/02 20:03:09     65158
+++ wxPython/3rdParty/AGW/agw/ribbon/page.py        2011/08/25 16:40:17     68881
@@ -50,7 +50,6 @@
self._sibling = sibling
self._flags = (style & RIBBON_SCROLL_BTN_DIRECTION_MASK) | RIBBON_SCROLL_BTN_FOR_PAGE

-
self.Bind(wx.EVT_ENTER_WINDOW, self.OnMouseEnter)
self.Bind(wx.EVT_ERASE_BACKGROUND, self.OnEraseBackground)
self.Bind(wx.EVT_LEAVE_WINDOW, self.OnMouseLeave)
@@ -138,6 +137,8 @@
self._icon = icon
self._scroll_left_btn = None
self._scroll_right_btn = None
+        self._size_calc_array = None
+        self._size_calc_array_size = 0
self._scroll_amount = 0
self._scroll_buttons_visible = False
self._collapse_stack = []
@@ -354,6 +355,11 @@
height -= h
self._scroll_right_btn.SetPosition(wx.Point(x, y + height))

+        if width < 0:
+            width = 0
+        if height < 0:
+            height = 0
+
self.SetDimensions(x, y, width, height)
Tree

Table Of Contents

Previous topic

ribbon.page functions

Next topic

ribbon.panel