Changeset 5342eb8 in sasview


Ignore:
Timestamp:
Apr 25, 2011 11:17:36 AM (13 years ago)
Author:
Gervaise Alina <gervyh@…>
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
Message:

change guistyle for calculator

Location:
guiframe
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • guiframe/gui_manager.py

    r521baa9 r5342eb8  
    685685        Go through plug-ins and find tools to populate the tools menu 
    686686        """ 
    687         style = self.__gui_style & GUIFRAME.TOOL_ON 
    688         if style == GUIFRAME.TOOL_ON: 
     687        style = self.__gui_style & GUIFRAME.CALCULATOR_ON 
     688        if style == GUIFRAME.CALCULATOR_ON: 
    689689            self._tool_menu = None 
    690690            for item in self.plugins: 
     
    785785        self._view_menu.AppendSeparator() 
    786786        id = wx.NewId() 
    787         style1 = self.__gui_style & GUIFRAME.TOOL_ON 
    788         if style1 == GUIFRAME.TOOL_ON: 
     787        style1 = self.__gui_style & GUIFRAME.TOOLBAR_ON 
     788        if style1 == GUIFRAME.TOOLBAR_ON: 
    789789            self._toolbar_menu = self._view_menu.Append(id,'&Hide Toolbar', '') 
    790790        else: 
     
    10341034            self._mgr.Update() 
    10351035            # Show toolbar 
    1036             style = self.__gui_style & GUIFRAME.TOOL_ON 
    1037             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()): 
    10381038                self._on_toggle_toolbar() 
    10391039             
     
    15091509        :param panels: list of panels 
    15101510        """ 
    1511         style = self.__gui_style & GUIFRAME.TOOL_ON 
    1512         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()): 
    15131513            self._on_toggle_toolbar() 
    15141514        for item in self.panels: 
  • guiframe/gui_style.py

    ra07e72f r5342eb8  
    1414    PLOTTING_ON = 8 
    1515    DATALOADER_ON = 16 
    16     TOOL_ON = 32 
     16    TOOLBAR_ON = 32 
     17    CALCULATOR_ON = 256 
    1718    SINGLE_APPLICATION = 64 
    1819    WELCOME_PANEL_ON = 128 
Note: See TracChangeset for help on using the changeset viewer.