Changeset 4d1dce4 in sasview for guiframe


Ignore:
Timestamp:
Apr 11, 2011 12:18:24 PM (14 years ago)
Author:
Jae Cho <jhjcho@…>
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:
f69b5830
Parents:
9f5b505
Message:

improved welcome page behavior

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/gui_manager.py

    r64e44c1 r4d1dce4  
    213213        """ 
    214214        """ 
     215        # set tool bar 
     216        self._setup_tool_bar() 
    215217        # Set up the layout 
    216218        self._setup_layout() 
    217219        # Set up the menu 
    218220        self._setup_menus() 
    219         # set tool bar 
    220         self._setup_tool_bar() 
     221         
    221222        try: 
    222223            self.load_from_cmd(self._input_file) 
     
    972973        if default_panel.IsShown(): 
    973974            default_panel.Hide() 
    974              
    975             # set a default perspective 
    976             self.set_default_perspective() 
     975            # Recover current perspective 
     976            perspective = self._current_perspective 
     977            perspective.on_perspective(event=None) 
    977978            self._mgr.Update() 
    978979            # Show toolbar 
    979             self._on_hide_toolbar() 
     980            style = self.__gui_style & GUIFRAME.TOOL_ON 
     981            if (style == GUIFRAME.TOOL_ON) & (not self._toolbar.IsShown()): 
     982                self._on_hide_toolbar() 
    980983             
    981984    def show_welcome_panel(self, event): 
     
    13961399        :param panels: list of panels 
    13971400        """ 
     1401        style = self.__gui_style & GUIFRAME.TOOL_ON 
     1402        if (style == GUIFRAME.TOOL_ON) & (not self._toolbar.IsShown()): 
     1403            self._on_hide_toolbar() 
    13981404        for item in self.panels: 
    13991405            # Check whether this is a sticky panel 
Note: See TracChangeset for help on using the changeset viewer.