浏览代码

wxGUI/locationWizard: fixes related to Windows

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@53006 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 12 年之前
父节点
当前提交
dc44bc67ae
共有 2 个文件被更改,包括 8 次插入8 次删除
  1. 1 1
      gui/wxpython/location_wizard/dialogs.py
  2. 7 7
      gui/wxpython/location_wizard/wizard.py

+ 1 - 1
gui/wxpython/location_wizard/dialogs.py

@@ -35,7 +35,7 @@ from grass.script import core as grass
 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)

+ 7 - 7
gui/wxpython/location_wizard/wizard.py

@@ -454,6 +454,13 @@ class ItemList(wx.ListCtrl,
         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 @@ class ItemList(wx.ListCtrl,
         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)))