Ignore:
Timestamp:
Oct 7, 2016 4:05:57 PM (8 years ago)
Author:
krzywon
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
b61bd57
Parents:
e6de6b8 (diff), 48b8f6d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into wx_save_simfit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/guiframe/gui_manager.py

    re6de6b8 r95eef00  
    13341334                    self._applications_menu_name = name 
    13351335 
     1336    def _on_marketplace_click(self, event): 
     1337        """ 
     1338            Click event for the help menu item linking to the Marketplace. 
     1339        """ 
     1340        import webbrowser 
     1341        webbrowser.open_new(config.marketplace_url) 
     1342 
    13361343    def _add_help_menu(self): 
    13371344        """ 
     
    13391346        tutorial PDF and documentation pages. 
    13401347        """ 
    1341         # Help menu 
    13421348        self._help_menu = wx.Menu() 
    1343         style = self.__gui_style & GUIFRAME.WELCOME_PANEL_ON 
    13441349 
    13451350        wx_id = wx.NewId() 
    13461351        self._help_menu.Append(wx_id, '&Documentation', '') 
    13471352        wx.EVT_MENU(self, wx_id, self._onSphinxDocs) 
    1348         self._help_menu.AppendSeparator() 
    13491353 
    13501354        if config._do_tutorial and (IS_WIN or sys.platform == 'darwin'): 
     
    13521356            self._help_menu.Append(wx_id, '&Tutorial', 'Software tutorial') 
    13531357            wx.EVT_MENU(self, wx_id, self._onTutorial) 
    1354             self._help_menu.AppendSeparator() 
    1355  
    13561358 
    13571359        if config._do_acknowledge: 
     
    13591361            self._help_menu.Append(wx_id, '&Acknowledge', 'Acknowledging SasView') 
    13601362            wx.EVT_MENU(self, wx_id, self._onAcknowledge) 
    1361             self._help_menu.AppendSeparator() 
    1362  
    13631363 
    13641364        if config._do_aboutbox: 
     
    13671367            self._help_menu.Append(wx_id, '&About', 'Software information') 
    13681368            wx.EVT_MENU(self, wx_id, self._onAbout) 
    1369             self._help_menu.AppendSeparator() 
    1370  
     1369 
     1370        if config.marketplace_url: 
     1371            wx_id = wx.NewId() 
     1372            self._help_menu.Append(wx_id, '&Model marketplace', '') 
     1373            wx.EVT_MENU(self, wx_id, self._on_marketplace_click) 
    13711374 
    13721375        # Checking for updates 
Note: See TracChangeset for help on using the changeset viewer.