Changeset 5342eb8 in sasview
- Timestamp:
- Apr 25, 2011 11:17:36 AM (14 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:
- d09fa370
- Parents:
- f72b143
- Location:
- guiframe
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/gui_manager.py
r521baa9 r5342eb8 685 685 Go through plug-ins and find tools to populate the tools menu 686 686 """ 687 style = self.__gui_style & GUIFRAME. TOOL_ON688 if style == GUIFRAME. TOOL_ON:687 style = self.__gui_style & GUIFRAME.CALCULATOR_ON 688 if style == GUIFRAME.CALCULATOR_ON: 689 689 self._tool_menu = None 690 690 for item in self.plugins: … … 785 785 self._view_menu.AppendSeparator() 786 786 id = wx.NewId() 787 style1 = self.__gui_style & GUIFRAME.TOOL _ON788 if style1 == GUIFRAME.TOOL _ON:787 style1 = self.__gui_style & GUIFRAME.TOOLBAR_ON 788 if style1 == GUIFRAME.TOOLBAR_ON: 789 789 self._toolbar_menu = self._view_menu.Append(id,'&Hide Toolbar', '') 790 790 else: … … 1034 1034 self._mgr.Update() 1035 1035 # Show toolbar 1036 style = self.__gui_style & GUIFRAME.TOOL _ON1037 if (style == GUIFRAME.TOOL _ON) & (not self._toolbar.IsShown()):1036 style = self.__gui_style & GUIFRAME.TOOLBAR_ON 1037 if (style == GUIFRAME.TOOLBAR_ON) & (not self._toolbar.IsShown()): 1038 1038 self._on_toggle_toolbar() 1039 1039 … … 1509 1509 :param panels: list of panels 1510 1510 """ 1511 style = self.__gui_style & GUIFRAME.TOOL _ON1512 if (style == GUIFRAME.TOOL _ON) & (not self._toolbar.IsShown()):1511 style = self.__gui_style & GUIFRAME.TOOLBAR_ON 1512 if (style == GUIFRAME.TOOLBAR_ON) & (not self._toolbar.IsShown()): 1513 1513 self._on_toggle_toolbar() 1514 1514 for item in self.panels: -
guiframe/gui_style.py
ra07e72f r5342eb8 14 14 PLOTTING_ON = 8 15 15 DATALOADER_ON = 16 16 TOOL_ON = 32 16 TOOLBAR_ON = 32 17 CALCULATOR_ON = 256 17 18 SINGLE_APPLICATION = 64 18 19 WELCOME_PANEL_ON = 128
Note: See TracChangeset
for help on using the changeset viewer.