瀏覽代碼

wxGUI/dbmgr: force default where operator (wxPython 3 fix)
(merge https://trac.osgeo.org/grass/changeset/64768 from trunk)


git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@64769 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 10 年之前
父節點
當前提交
9db40c96e0
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      gui/wxpython/dbmgr/base.py

+ 1 - 0
gui/wxpython/dbmgr/base.py

@@ -1098,6 +1098,7 @@ class DbMgrBrowsePage(DbMgrNotebookBase):
         sqlWhereCond = wx.Choice(parent = whereSimpleSqlPanel, id = wx.ID_ANY,
         sqlWhereCond = wx.Choice(parent = whereSimpleSqlPanel, id = wx.ID_ANY,
                                  size = (55,-1),
                                  size = (55,-1),
                                  choices = ['=', '!=', '<', '<=', '>', '>='])
                                  choices = ['=', '!=', '<', '<=', '>', '>='])
+        sqlWhereCond.SetSelection(0)
         sqlWhereValue = wx.TextCtrl(parent = whereSimpleSqlPanel, id = wx.ID_ANY, value = "",
         sqlWhereValue = wx.TextCtrl(parent = whereSimpleSqlPanel, id = wx.ID_ANY, value = "",
                                     style = wx.TE_PROCESS_ENTER)
                                     style = wx.TE_PROCESS_ENTER)
         sqlWhereValue.SetToolTipString(_("Example: %s") % "MULTILANE = 'no' AND OBJECTID < 10")
         sqlWhereValue.SetToolTipString(_("Example: %s") % "MULTILANE = 'no' AND OBJECTID < 10")