[GRASS-SVN] r69820 - grass/branches/releasebranch_7_2/gui/wxpython/modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Nov 13 19:06:43 PST 2016


Author: annakrat
Date: 2016-11-13 19:06:42 -0800 (Sun, 13 Nov 2016)
New Revision: 69820

Modified:
   grass/branches/releasebranch_7_2/gui/wxpython/modules/import_export.py
Log:
wxGUI/reprojection dialog: fix for Mac, StaticBox? must be defined before the widgets (merge from trunk, r69657)

Modified: grass/branches/releasebranch_7_2/gui/wxpython/modules/import_export.py
===================================================================
--- grass/branches/releasebranch_7_2/gui/wxpython/modules/import_export.py	2016-11-14 00:02:34 UTC (rev 69819)
+++ grass/branches/releasebranch_7_2/gui/wxpython/modules/import_export.py	2016-11-14 03:06:42 UTC (rev 69820)
@@ -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