- Timestamp:
- Mar 16, 2016 5:01:49 PM (9 years ago)
- 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, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 82bc7a9, 66f21cd
- Parents:
- 40fc798 (diff), 0d534de (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. - File:
-
- 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.