[GRASS-SVN] r49459 - grass/trunk/gui/wxpython/dbmgr
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Dec 1 07:00:34 EST 2011
Author: martinl
Date: 2011-12-01 04:00:34 -0800 (Thu, 01 Dec 2011)
New Revision: 49459
Modified:
grass/trunk/gui/wxpython/dbmgr/manager.py
Log:
wxGUI/dbm: select first tab if not defined
Modified: grass/trunk/gui/wxpython/dbmgr/manager.py
===================================================================
--- grass/trunk/gui/wxpython/dbmgr/manager.py 2011-12-01 11:59:21 UTC (rev 49458)
+++ grass/trunk/gui/wxpython/dbmgr/manager.py 2011-12-01 12:00:34 UTC (rev 49459)
@@ -642,10 +642,12 @@
self._createBrowsePage()
self._createManageTablePage()
self._createManageLayerPage()
-
+
if selection:
- wx.CallAfter(self.notebook.SetSelectionByName, selection) # select browse tab
-
+ wx.CallAfter(self.notebook.SetSelectionByName, selection)
+ else:
+ 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"))
More information about the grass-commit
mailing list