[GRASS-SVN] r62329 - grass/trunk/gui/wxpython/dbmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Oct 21 13:07:42 PDT 2014


Author: martinl
Date: 2014-10-21 13:07:42 -0700 (Tue, 21 Oct 2014)
New Revision: 62329

Modified:
   grass/trunk/gui/wxpython/dbmgr/sqlbuilder.py
Log:
wxGUI/sqlbuilder: GoTo - process ENTER

Modified: grass/trunk/gui/wxpython/dbmgr/sqlbuilder.py
===================================================================
--- grass/trunk/gui/wxpython/dbmgr/sqlbuilder.py	2014-10-21 20:00:09 UTC (rev 62328)
+++ grass/trunk/gui/wxpython/dbmgr/sqlbuilder.py	2014-10-21 20:07:42 UTC (rev 62329)
@@ -218,7 +218,7 @@
 
         # go to
         gotosizer = wx.BoxSizer(wx.HORIZONTAL)
-        self.goto = wx.TextCtrl(parent = self.valuespanel, id = wx.ID_ANY)
+        self.goto = wx.TextCtrl(parent = self.valuespanel, id = wx.ID_ANY, style = wx.TE_PROCESS_ENTER)
         gotosizer.Add(item = wx.StaticText(parent = self.valuespanel, id = wx.ID_ANY,
                                               label = _("Go to:")), proportion = 0,
                       flag = wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, border = 5)
@@ -272,13 +272,14 @@
         self.list_columns.Bind(wx.EVT_LISTBOX,   self.OnAddColumn)
         self.list_values.Bind(wx.EVT_LISTBOX,    self.OnAddValue)
         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)
         
         self.Layout()
-        self.SetMinSize((400, 550))
+        self.SetMinSize((400, 600))
         self.SetClientSize(self.panel.GetSize())
         self.CenterOnParent()
    



More information about the grass-commit mailing list