[GRASS-SVN] r32997 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Aug 22 10:19:13 EDT 2008


Author: martinl
Date: 2008-08-22 10:19:12 -0400 (Fri, 22 Aug 2008)
New Revision: 32997

Modified:
   grass/trunk/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
(merge from devbr6, r32994)


Modified: grass/trunk/gui/wxpython/gui_modules/dbm.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/dbm.py	2008-08-22 14:16:53 UTC (rev 32996)
+++ grass/trunk/gui/wxpython/gui_modules/dbm.py	2008-08-22 14:19:12 UTC (rev 32997)
@@ -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