[GRASS-SVN] r54752 - grass/trunk/gui/wxpython/dbmgr
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jan 22 06:54:01 PST 2013
Author: martinl
Date: 2013-01-22 06:54:01 -0800 (Tue, 22 Jan 2013)
New Revision: 54752
Modified:
grass/trunk/gui/wxpython/dbmgr/manager.py
Log:
wxGUI/dbmgr: change button (quit -> close)
Modified: grass/trunk/gui/wxpython/dbmgr/manager.py
===================================================================
--- grass/trunk/gui/wxpython/dbmgr/manager.py 2013-01-22 13:44:08 UTC (rev 54751)
+++ grass/trunk/gui/wxpython/dbmgr/manager.py 2013-01-22 14:54:01 UTC (rev 54752)
@@ -112,13 +112,13 @@
wx.CallAfter(self.notebook.SetSelection, 0) # select browse tab
# buttons
- self.btnQuit = wx.Button(parent = self.panel, id = wx.ID_EXIT)
- self.btnQuit.SetToolTipString(_("Close Attribute Table Manager"))
+ self.btnClose = wx.Button(parent = self.panel, id = wx.ID_CLOSE)
+ self.btnClose.SetToolTipString(_("Close Attribute Table Manager"))
self.btnReload = wx.Button(parent = self.panel, id = wx.ID_REFRESH)
self.btnReload.SetToolTipString(_("Reload attribute data (selected layer only)"))
# events
- self.btnQuit.Bind(wx.EVT_BUTTON, self.OnCloseWindow)
+ self.btnClose.Bind(wx.EVT_BUTTON, self.OnCloseWindow)
self.btnReload.Bind(wx.EVT_BUTTON, self.pages['browse'].OnDataReload)
self.notebook.Bind(FN.EVT_FLATNOTEBOOK_PAGE_CHANGED, self.OnPageChanged)
self.Bind(wx.EVT_CLOSE, self.OnCloseWindow)
@@ -139,7 +139,7 @@
btnSizer = wx.BoxSizer(wx.HORIZONTAL)
btnSizer.Add(item = self.btnReload, proportion = 1,
flag = wx.ALL | wx.ALIGN_RIGHT, border = 5)
- btnSizer.Add(item = self.btnQuit, proportion = 1,
+ btnSizer.Add(item = self.btnClose, proportion = 1,
flag = wx.ALL | wx.ALIGN_RIGHT, border = 5)
mainSizer.Add(item = self.notebook, proportion = 1, flag = wx.EXPAND)
More information about the grass-commit
mailing list