瀏覽代碼

wxGUI/group dialog: fix sizers for wxpython 2.9

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58070 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 11 年之前
父節點
當前提交
21cbe2809f
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      gui/wxpython/gui_core/dialogs.py

+ 4 - 4
gui/wxpython/gui_core/dialogs.py

@@ -637,8 +637,6 @@ class GroupDialog(wx.Dialog):
         self.gListPanel = wx.Panel(self)
         self.gListPanel = wx.Panel(self)
 
 
         gListSizer  = wx.GridBagSizer(vgap=2, hgap=2)
         gListSizer  = wx.GridBagSizer(vgap=2, hgap=2)
-        gListSizer.AddGrowableCol(1)
-        gListSizer.AddGrowableRow(1)
 
 
         gListSizer.Add(item = wx.StaticText(parent = self.gListPanel, label = _("Pattern:")),
         gListSizer.Add(item = wx.StaticText(parent = self.gListPanel, label = _("Pattern:")),
                       flag = wx.ALIGN_CENTER_VERTICAL,
                       flag = wx.ALIGN_CENTER_VERTICAL,
@@ -674,6 +672,8 @@ class GroupDialog(wx.Dialog):
         sizer.Add(item = buttonSizer, flag = wx.LEFT, border = 5)
         sizer.Add(item = buttonSizer, flag = wx.LEFT, border = 5)
         
         
         gListSizer.Add(item=sizer, flag=wx.EXPAND, pos=(1,1))
         gListSizer.Add(item=sizer, flag=wx.EXPAND, pos=(1,1))
+        gListSizer.AddGrowableCol(1)
+        gListSizer.AddGrowableRow(1)
 
 
         self.gListPanel.SetSizer(gListSizer)
         self.gListPanel.SetSizer(gListSizer)
         bodySizer.Add(item=self.gListPanel, proportion=1, flag=wx.EXPAND)
         bodySizer.Add(item=self.gListPanel, proportion=1, flag=wx.EXPAND)
@@ -682,8 +682,6 @@ class GroupDialog(wx.Dialog):
         self.subgListPanel = wx.Panel(self)
         self.subgListPanel = wx.Panel(self)
 
 
         subgListSizer  = wx.GridBagSizer(vgap=2, hgap=2)
         subgListSizer  = wx.GridBagSizer(vgap=2, hgap=2)
-        subgListSizer.AddGrowableCol(1)
-        subgListSizer.AddGrowableRow(1)
 
 
         subgListSizer.Add(item = wx.StaticText(parent = self.subgListPanel, label = _("Pattern:")),
         subgListSizer.Add(item = wx.StaticText(parent = self.subgListPanel, label = _("Pattern:")),
                       flag = wx.ALIGN_CENTER_VERTICAL,
                       flag = wx.ALIGN_CENTER_VERTICAL,
@@ -707,6 +705,8 @@ class GroupDialog(wx.Dialog):
         self.subgListBox.SetToolTipString(_("Check maps from group to be included into subgroup."))
         self.subgListBox.SetToolTipString(_("Check maps from group to be included into subgroup."))
 
 
         subgListSizer.Add(item=self.subgListBox, flag=wx.EXPAND, pos=(1,1))
         subgListSizer.Add(item=self.subgListBox, flag=wx.EXPAND, pos=(1,1))
+        subgListSizer.AddGrowableCol(1)
+        subgListSizer.AddGrowableRow(1)
 
 
         self.subgListPanel.SetSizer(subgListSizer)
         self.subgListPanel.SetSizer(subgListSizer)
         bodySizer.Add(item=self.subgListPanel, proportion=1, flag=wx.EXPAND)
         bodySizer.Add(item=self.subgListPanel, proportion=1, flag=wx.EXPAND)