[GRASS-SVN] r53009 - grass/branches/releasebranch_6_4/gui/wxpython/location_wizard

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Aug 31 01:48:47 PDT 2012


Author: annakrat
Date: 2012-08-31 01:48:46 -0700 (Fri, 31 Aug 2012)
New Revision: 53009

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/location_wizard/dialogs.py
   grass/branches/releasebranch_6_4/gui/wxpython/location_wizard/wizard.py
Log:
wxGUI/locationWizard: fix related to Windows

Modified: grass/branches/releasebranch_6_4/gui/wxpython/location_wizard/dialogs.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/location_wizard/dialogs.py	2012-08-31 08:48:24 UTC (rev 53008)
+++ grass/branches/releasebranch_6_4/gui/wxpython/location_wizard/dialogs.py	2012-08-31 08:48:46 UTC (rev 53009)
@@ -32,9 +32,9 @@
 class RegionDef(BaseClass, wx.Dialog):
     """!Page for setting default region extents and resolution
     """
-    def __init__(self, parent, id = wx.ID_ANY,
+    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, size = (650,300))
+        wx.Dialog.__init__(self, parent, id, title, size = size)
         panel = wx.Panel(self, id = wx.ID_ANY)
         
         self.SetIcon(wx.Icon(os.path.join(globalvar.ETCICONDIR, 'grass.ico'), wx.BITMAP_TYPE_ICO))

Modified: grass/branches/releasebranch_6_4/gui/wxpython/location_wizard/wizard.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/location_wizard/wizard.py	2012-08-31 08:48:24 UTC (rev 53008)
+++ grass/branches/releasebranch_6_4/gui/wxpython/location_wizard/wizard.py	2012-08-31 08:48:46 UTC (rev 53009)
@@ -455,6 +455,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()
@@ -470,13 +477,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