Changes in / [e304e3f:e82bb81] in sasview
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sasview/local_config.py
r06707b6 radb0851 88 88 _welcome_image = os.path.join(icon_path, "SVwelcome.png") 89 89 _copyright = "(c) 2009 - 2016, UTK, UMD, NIST, ORNL, ISIS, ESS, ILL and ANSTO" 90 90 marketplace_url = "http://marketplace.sasview.org/" 91 91 92 92 #edit the list of file state your plugin can read -
src/sas/sasgui/guiframe/gui_manager.py
r3fac0df radb0851 1333 1333 self._applications_menu_name = name 1334 1334 1335 def _on_marketplace_click(self, event): 1336 """ 1337 Click event for the help menu item linking to the Marketplace. 1338 """ 1339 import webbrowser 1340 webbrowser.open_new(config.marketplace_url) 1341 1335 1342 def _add_help_menu(self): 1336 1343 """ … … 1338 1345 tutorial PDF and documentation pages. 1339 1346 """ 1340 # Help menu1341 1347 self._help_menu = wx.Menu() 1342 style = self.__gui_style & GUIFRAME.WELCOME_PANEL_ON1343 1348 1344 1349 wx_id = wx.NewId() 1345 1350 self._help_menu.Append(wx_id, '&Documentation', '') 1346 1351 wx.EVT_MENU(self, wx_id, self._onSphinxDocs) 1347 self._help_menu.AppendSeparator()1348 1352 1349 1353 if config._do_tutorial and (IS_WIN or sys.platform == 'darwin'): … … 1351 1355 self._help_menu.Append(wx_id, '&Tutorial', 'Software tutorial') 1352 1356 wx.EVT_MENU(self, wx_id, self._onTutorial) 1353 self._help_menu.AppendSeparator()1354 1355 1357 1356 1358 if config._do_acknowledge: … … 1358 1360 self._help_menu.Append(wx_id, '&Acknowledge', 'Acknowledging SasView') 1359 1361 wx.EVT_MENU(self, wx_id, self._onAcknowledge) 1360 self._help_menu.AppendSeparator()1361 1362 1362 1363 1363 if config._do_aboutbox: … … 1366 1366 self._help_menu.Append(wx_id, '&About', 'Software information') 1367 1367 wx.EVT_MENU(self, wx_id, self._onAbout) 1368 self._help_menu.AppendSeparator() 1369 1368 1369 if config.marketplace_url: 1370 wx_id = wx.NewId() 1371 self._help_menu.Append(wx_id, '&Model marketplace', '') 1372 wx.EVT_MENU(self, wx_id, self._on_marketplace_click) 1370 1373 1371 1374 # Checking for updates
Note: See TracChangeset
for help on using the changeset viewer.