Ignore:
Timestamp:
Aug 12, 2011 4:33:09 PM (13 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:
b52cf23
Parents:
889de4d9
Message:

control menu differently on app

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/gui_manager.py

    r390742c r8e3dc19  
    8989APPLICATION_NAME = config.__appname__ 
    9090SPLASH_SCREEN_PATH = config.SPLASH_SCREEN_PATH 
    91  
     91WELCOME_PANEL_ON = config.WELCOME_PANEL_ON 
    9292SPLASH_SCREEN_WIDTH = config.SPLASH_SCREEN_WIDTH 
    9393SPLASH_SCREEN_HEIGHT = config.SPLASH_SCREEN_HEIGHT 
    9494SS_MAX_DISPLAY_TIME = config.SS_MAX_DISPLAY_TIME 
    95  
     95if not WELCOME_PANEL_ON: 
     96        WELCOME_PANEL_SHOW = False 
     97else: 
     98    WELCOME_PANEL_SHOW = True 
    9699try: 
    97100    DATALOADER_SHOW = custom_config.DATALOADER_SHOW 
    98101    TOOLBAR_SHOW = custom_config.TOOLBAR_SHOW 
    99102    FIXED_PANEL = custom_config.FIXED_PANEL 
    100     WELCOME_PANEL_SHOW = custom_config.WELCOME_PANEL_SHOW 
     103    if WELCOME_PANEL_ON: 
     104        WELCOME_PANEL_SHOW = custom_config.WELCOME_PANEL_SHOW 
    101105    PLOPANEL_WIDTH = custom_config.PLOPANEL_WIDTH 
    102106    DATAPANEL_WIDTH = custom_config.DATAPANEL_WIDTH 
     
    953957        if style == GUIFRAME.WELCOME_PANEL_ON or custom_config != None: 
    954958            # add the welcome panel menu item 
    955             if self.defaultPanel is not None: 
     959            if config.WELCOME_PANEL_ON and self.defaultPanel is not None: 
    956960                id = wx.NewId() 
    957961                self._help_menu.Append(id, '&Welcome', '') 
Note: See TracChangeset for help on using the changeset viewer.