[GRASS-SVN] r40059 - grass/branches/releasebranch_6_4/gui/wxpython

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Dec 19 06:42:00 EST 2009


Author: martinl
Date: 2009-12-19 06:41:59 -0500 (Sat, 19 Dec 2009)
New Revision: 40059

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/wxgui.py
Log:
wxGUI: AboutWindow, add arrows (see trac #839)


Modified: grass/branches/releasebranch_6_4/gui/wxpython/wxgui.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/wxgui.py	2009-12-19 11:35:52 UTC (rev 40058)
+++ grass/branches/releasebranch_6_4/gui/wxpython/wxgui.py	2009-12-19 11:41:59 UTC (rev 40059)
@@ -1680,9 +1680,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)
         
@@ -1692,11 +1691,13 @@
         pg3 = aboutNotebook.AddPage(licensewin,   text=_("License"))
         pg4 = aboutNotebook.AddPage(authorwin,    text=_("Authors"))
 
+        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)
@@ -1709,7 +1710,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