Procházet zdrojové kódy

wxGUI: hide 'Help' button if manual page is missing
(merge from devbr6, https://trac.osgeo.org/grass/changeset/36212)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@36213 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa před 16 roky
rodič
revize
3a44480809
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      gui/wxpython/gui_modules/menuform.py

+ 2 - 0
gui/wxpython/gui_modules/menuform.py

@@ -646,6 +646,8 @@ class mainFrame(wx.Frame):
         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)