[GRASS-SVN] r53006 - grass/trunk/gui/wxpython/location_wizard

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Aug 31 01:36:26 PDT 2012


Author: annakrat
Date: 2012-08-31 01:36:26 -0700 (Fri, 31 Aug 2012)
New Revision: 53006

Modified:
   grass/trunk/gui/wxpython/location_wizard/dialogs.py
   grass/trunk/gui/wxpython/location_wizard/wizard.py
Log:
wxGUI/locationWizard: fixes related to Windows

Modified: grass/trunk/gui/wxpython/location_wizard/dialogs.py
===================================================================
--- grass/trunk/gui/wxpython/location_wizard/dialogs.py	2012-08-31 06:15:45 UTC (rev 53005)
+++ grass/trunk/gui/wxpython/location_wizard/dialogs.py	2012-08-31 08:36:26 UTC (rev 53006)
@@ -35,7 +35,7 @@
 class RegionDef(BaseClass, wx.Dialog):
     """!Page for setting default region extents and resolution
     """
-    def __init__(self, parent, id = wx.ID_ANY, size = (650, 800),
+    def __init__(self, parent, id = wx.ID_ANY, size = (800, 600),
                  title = _("Set default region extent and resolution"), location = None):
         wx.Dialog.__init__(self, parent, id, title)
         panel = wx.Panel(self, id = wx.ID_ANY)

Modified: grass/trunk/gui/wxpython/location_wizard/wizard.py
===================================================================
--- grass/trunk/gui/wxpython/location_wizard/wizard.py	2012-08-31 06:15:45 UTC (rev 53005)
+++ grass/trunk/gui/wxpython/location_wizard/wizard.py	2012-08-31 08:36:26 UTC (rev 53006)
@@ -454,6 +454,13 @@
         for column in columns:
             self.InsertColumn(i, column)
             i += 1
+        #
+        # add some attributes
+        #
+        self.attr1 = wx.ListItemAttr()
+        self.attr1.SetBackgroundColour(wx.Colour(238,238,238))
+        self.attr2 = wx.ListItemAttr()
+        self.attr2.SetBackgroundColour("white")
 
         if self.sourceData:
             self.Populate()
@@ -469,13 +476,6 @@
         listmix.ListCtrlAutoWidthMixin.__init__(self)
         listmix.ColumnSorterMixin.__init__(self, self.GetColumnCount())
             
-        #
-        # add some attributes
-        #
-        self.attr1 = wx.ListItemAttr()
-        self.attr1.SetBackgroundColour(wx.Colour(238,238,238))
-        self.attr2 = wx.ListItemAttr()
-        self.attr2.SetBackgroundColour("white")
         self.il = wx.ImageList(16, 16)
         self.sm_up = self.il.Add(wx.ArtProvider_GetBitmap(wx.ART_GO_UP,   wx.ART_TOOLBAR,
                                                           (16,16)))



More information about the grass-commit mailing list