Changes in / [40fc798:53750a1] in sasview
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/gui_manager.py
rd85c194 r0d534de 1290 1290 wx.EVT_MENU(self, id, tool[2]) 1291 1291 if self._tool_menu is not None: 1292 self._menubar.Append(self._tool_menu, '&Tool ')1292 self._menubar.Append(self._tool_menu, '&Tools') 1293 1293 1294 1294 def _add_current_plugin_menu(self): … … 1321 1321 for (menu, name) in menu_list: 1322 1322 if self._applications_menu_pos == -1: 1323 # Find the Help position and insert just beforeit if possible1324 help_pos = self._menubar.FindMenu("Help")1325 if help_pos == -1:1323 # Find the Analysis position and insert just after it if possible 1324 analysis_pos = self._menubar.FindMenu("Analysis") 1325 if analysis_pos == -1: 1326 1326 self._menubar.Append(menu, name) 1327 1327 self._applications_menu_pos = -1 1328 1328 else: 1329 self._menubar.Insert( help_pos-1, menu, name)1330 self._applications_menu_pos = help_pos -11329 self._menubar.Insert(analysis_pos+1, menu, name) 1330 self._applications_menu_pos = analysis_pos + 1 1331 1331 else: 1332 1332 self._menubar.Insert(self._applications_menu_pos, menu, name) … … 1492 1492 if not plug_data_count or not plug_no_data_count: 1493 1493 self._applications_menu.RemoveItem(separator) 1494 self._menubar.Append(self._applications_menu, '&Analysis') 1494 #Windows introduces a "Window" menu item during the layout process 1495 #somehow. We want it to be next to the last item with Help as 1496 #last. However Analysis gets stuck after Window in normal ordering 1497 #so force it to be next after the Tools menu item. Should we add 1498 #another menu item will need to check if this is still where we 1499 #want Analysis. This is NOT an issue on the Mac which does not 1500 #have the extra Window menu item. 1501 # March 2016 Code Camp -- PDB 1502 Tools_pos = self._menubar.FindMenu("Tools") 1503 self._menubar.Insert(Tools_pos+1,self._applications_menu, 1504 '&Analysis') 1495 1505 self._check_applications_menu() 1496 1506
Note: See TracChangeset
for help on using the changeset viewer.