Changeset 2509 for trunk/GSASII.py


Ignore:
Timestamp:
Oct 31, 2016 6:18:14 PM (5 years ago)
Author:
toby
Message:

fixes to help

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r2502 r2509  
    22142214        self.Bind(wx.EVT_MENU, self.OnExportPDF, id=item.GetId())
    22152215
    2216     def FillMainMenu(self,menubar):
     2216    def FillMainMenu(self,menubar,addhelp=True):
    22172217        '''Define contents of the main GSAS-II menu for the (main) data tree window.
    22182218        For the mac, this is also called for the data item windows as well so that
     
    22792279            menubar.Append(menu=self.MacroMenu, title='Macro')
    22802280            self._init_Macro()
    2281         HelpMenu=G2G.MyHelp(self,helpType='Data tree',
    2282             morehelpitems=[('&Tutorials','Tutorials'),])
    2283         menubar.Append(menu=HelpMenu,title='&Help')
     2281        if addhelp:
     2282            HelpMenu=G2G.MyHelp(self,includeTree=True,
     2283                morehelpitems=[('&Tutorials','Tutorials'),])
     2284            menubar.Append(menu=HelpMenu,title='&Help')
    22842285           
    22852286    def _init_ctrls(self, parent):
Note: See TracChangeset for help on using the changeset viewer.