[GRASS-SVN] r65387 - grass/trunk/gui/wxpython/dbmgr
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jun 6 07:25:06 PDT 2015
Author: martinl
Date: 2015-06-06 07:25:06 -0700 (Sat, 06 Jun 2015)
New Revision: 65387
Modified:
grass/trunk/gui/wxpython/dbmgr/sqlbuilder.py
Log:
wxGUI/dbmgr: attempt to fix #2661 (verify button)
Modified: grass/trunk/gui/wxpython/dbmgr/sqlbuilder.py
===================================================================
--- grass/trunk/gui/wxpython/dbmgr/sqlbuilder.py 2015-06-06 14:09:37 UTC (rev 65386)
+++ grass/trunk/gui/wxpython/dbmgr/sqlbuilder.py 2015-06-06 14:25:06 UTC (rev 65387)
@@ -73,7 +73,12 @@
self.statusbar = self.CreateStatusBar(number=1)
self._doLayout(modeChoices)
- self.SetMinSize((425, 600))
+
+ self.panel.SetAutoLayout(True)
+ self.panel.SetSizer(self.pagesizer)
+ self.pagesizer.Fit(self.panel)
+
+ self.SetMinSize((400, 600))
self.SetClientSize(self.panel.GetSize())
self.CenterOnParent()
@@ -277,10 +282,6 @@
self.goto.Bind(wx.EVT_TEXT, self.OnGoTo)
self.goto.Bind(wx.EVT_TEXT_ENTER, self.OnAddValue)
- self.panel.SetAutoLayout(True)
- self.panel.SetSizer(self.pagesizer)
- self.pagesizer.Fit(self.panel)
-
def OnUniqueValues(self, event, justsample = False):
"""Get unique values"""
vals = []
@@ -420,7 +421,7 @@
self.btn_verify.SetToolTipString(_("Verify SQL statement"))
self.buttonsizer.Insert(item = self.btn_verify, before = 1)
-
+
self.text_sql.Bind(wx.EVT_TEXT, self.OnText)
self.btn_verify.Bind(wx.EVT_BUTTON, self.OnVerify)
More information about the grass-commit
mailing list