[GRASS-SVN] r40056 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Dec 19 06:28:59 EST 2009


Author: martinl
Date: 2009-12-19 06:28:57 -0500 (Sat, 19 Dec 2009)
New Revision: 40056

Modified:
   grass/trunk/gui/wxpython/gui_modules/help.py
Log:
wxGUI: AboutWindow, add arrows (see trac #839)


Modified: grass/trunk/gui/wxpython/gui_modules/help.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/help.py	2009-12-19 08:35:37 UTC (rev 40055)
+++ grass/trunk/gui/wxpython/gui_modules/help.py	2009-12-19 11:28:57 UTC (rev 40056)
@@ -412,9 +412,8 @@
         nbstyle = FN.FNB_VC8 | \
                 FN.FNB_BACKGROUND_GRADIENT | \
                 FN.FNB_TABS_BORDER_SIMPLE | \
-                FN.FNB_NO_X_BUTTON | \
-                FN.FNB_NO_NAV_BUTTONS
-                
+                FN.FNB_NO_X_BUTTON
+        
         aboutNotebook = FN.FlatNotebook(panel, id=wx.ID_ANY, style=nbstyle)
         aboutNotebook.SetTabAreaColour(globalvar.FNPageColor)
         
@@ -429,8 +428,8 @@
         # buttons
         btnClose = wx.Button(parent = panel, id = wx.ID_CLOSE)
         btnSizer = wx.BoxSizer(wx.HORIZONTAL)
-        btnSizer.Add(item = btnClose, proportion = 1,
-                     flag = wx.ALL | wx.EXPAND | wx.ALIGN_RIGHT,
+        btnSizer.Add(item = btnClose, proportion = 0,
+                     flag = wx.ALL | wx.ALIGN_RIGHT,
                      border = 5)
         # bindings
         # self.aboutNotebook.Bind(FN.EVT_FLATNOTEBOOK_PAGE_CHANGED, self.OnAGPageChanged)
@@ -443,7 +442,7 @@
         sizer.Add(item=aboutNotebook, proportion=1,
                   flag=wx.EXPAND | wx.ALL, border=1)
         sizer.Add(item=btnSizer, proportion=0,
-                  flag=wx.EXPAND | wx.ALL | wx.ALIGN_RIGHT, border=1)
+                  flag=wx.ALL | wx.ALIGN_RIGHT, border=1)
         panel.SetSizer(sizer)
         self.Layout()
     



More information about the grass-commit mailing list