[GRASS-SVN] r69657 - grass/trunk/gui/wxpython/modules

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Oct 3 11:40:15 PDT 2016


Author: annakrat
Date: 2016-10-03 11:40:15 -0700 (Mon, 03 Oct 2016)
New Revision: 69657

Modified:
   grass/trunk/gui/wxpython/modules/import_export.py
Log:
wxGUI/reprojection dialog: fix for Mac, StaticBox must be defined before the widgets

Modified: grass/trunk/gui/wxpython/modules/import_export.py
===================================================================
--- grass/trunk/gui/wxpython/modules/import_export.py	2016-10-03 18:14:03 UTC (rev 69656)
+++ grass/trunk/gui/wxpython/modules/import_export.py	2016-10-03 18:40:15 UTC (rev 69657)
@@ -862,6 +862,9 @@
         columns = [_('Layer id'),
                    _('Name for output GRASS map')]
 
+        self.layerBox = wx.StaticBox(parent=self.panel, id=wx.ID_ANY)
+        self.layerSizer = wx.StaticBoxSizer(self.layerBox, wx.HORIZONTAL)
+
         self.list = GListCtrl(parent=self.panel)
 
         for i in range(len(columns)):
@@ -874,8 +877,6 @@
 
         self.list.LoadData(data)
 
-        self.layerBox = wx.StaticBox(parent=self.panel, id=wx.ID_ANY)
-
         self.labelText = wx.StaticText(parent=self.panel, id=wx.ID_ANY, label=_(
             "Projection of following layers do not match with projection of current location. "))
 
@@ -906,13 +907,11 @@
         dialogSizer.Add(item=self.labelText,
                         flag=wx.ALL | wx.EXPAND, border=5)
 
-        layerSizer = wx.StaticBoxSizer(self.layerBox, wx.HORIZONTAL)
+        self.layerSizer.Add(item=self.list, proportion=1,
+                            flag=wx.ALL | wx.EXPAND, border=5)
 
-        layerSizer.Add(item=self.list, proportion=1,
-                       flag=wx.ALL | wx.EXPAND, border=5)
-
         dialogSizer.Add(
-            item=layerSizer,
+            item=self.layerSizer,
             proportion=1,
             flag=wx.LEFT | wx.RIGHT | wx.BOTTOM | wx.EXPAND,
             border=5)



More information about the grass-commit mailing list