[GRASS-SVN] r36213 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Mar 6 11:31:50 EST 2009
Author: martinl
Date: 2009-03-06 11:31:50 -0500 (Fri, 06 Mar 2009)
New Revision: 36213
Modified:
grass/trunk/gui/wxpython/gui_modules/menuform.py
Log:
wxGUI: hide 'Help' button if manual page is missing
(merge from devbr6, r36212)
Modified: grass/trunk/gui/wxpython/gui_modules/menuform.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/menuform.py 2009-03-06 16:30:43 UTC (rev 36212)
+++ grass/trunk/gui/wxpython/gui_modules/menuform.py 2009-03-06 16:31:50 UTC (rev 36213)
@@ -646,6 +646,8 @@
self.btn_help = wx.Button(parent=self.panel, id=wx.ID_HELP)
self.btn_help.SetToolTipString(_("Show manual page of the command"))
self.btn_help.Bind(wx.EVT_BUTTON, self.OnHelp)
+ if not hasattr(self.notebookpanel, "manual_tab_id"):
+ self.btn_help.Hide()
if self.get_dcmd is not None: # A callback has been set up
btn_apply = wx.Button(parent=self.panel, id=wx.ID_APPLY)
btn_ok = wx.Button(parent=self.panel, id=wx.ID_OK)
More information about the grass-commit
mailing list