[GRASS-SVN] r40058 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Dec 19 06:35:53 EST 2009


Author: martinl
Date: 2009-12-19 06:35:52 -0500 (Sat, 19 Dec 2009)
New Revision: 40058

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/help.py
Log:
wxGUI: AboutWindow, add arrows (see trac #839)
       (merge r40056 & r40057 from trunk)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/help.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/help.py	2009-12-19 11:33:14 UTC (rev 40057)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/help.py	2009-12-19 11:35:52 UTC (rev 40058)
@@ -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)
         
@@ -426,11 +425,13 @@
         pg5 = aboutNotebook.AddPage(contribwin,   text=_("Contributors"))
         pg5 = aboutNotebook.AddPage(transwin,     text=_("Translators"))
         
+        wx.CallAfter(aboutNotebook.SetSelection, 0)
+        
         # 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 +444,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