[GRASS-SVN] r32994 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Aug 22 10:16:10 EDT 2008
Author: martinl
Date: 2008-08-22 10:16:10 -0400 (Fri, 22 Aug 2008)
New Revision: 32994
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/dbm.py
Log:
wxGUI/dbm: enable 'add' button properly when number of linked tables > 1, don't use ID_ADD here
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/dbm.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/dbm.py 2008-08-22 05:16:09 UTC (rev 32993)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/dbm.py 2008-08-22 14:16:10 UTC (rev 32994)
@@ -620,7 +620,6 @@
except IndexError:
self.layer = None
-
def __createManageTablePage(self, onlyLayer=-1):
"""Create manage page (create/link and alter tables)"""
for layer in self.mapDBInfo.layers.keys():
@@ -714,7 +713,7 @@
flag=wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT,
border=3)
- btnAddCol = wx.Button(parent=panel, id=wx.ID_ADD)
+ btnAddCol = wx.Button(parent=panel, id=wx.ID_ANY, label=_("Add"))
btnAddCol.Bind(wx.EVT_BUTTON, self.OnTableItemAdd)
btnAddCol.Enable(False)
self.layerPage[layer]['addColButton'] = btnAddCol.GetId()
More information about the grass-commit
mailing list