Changeset 8e3dc19 in sasview


Ignore:
Timestamp:
Aug 12, 2011 2: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

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • calculatorview/scripts/local_config.py

    r8ddaa9b r8e3dc19  
    6565SPLASH_SCREEN_HEIGHT = 366 
    6666SS_MAX_DISPLAY_TIME = 6000 #6 sec 
    67 WELCOME_PANEL_SHOW = False 
     67WELCOME_PANEL_ON = False 
    6868CLEANUP_PLOT = False 
    6969SetupIconFile_win = os.path.join("images", "ball.ico") 
  • prview/local_config.py

    r807560b r8e3dc19  
    88# Version of the application 
    99__appname__ = "PrView" 
    10 __version__ = '0.3.0' 
     10__version__ = '0.9.1' 
    1111__download_page__ = 'http://danse.chem.utk.edu' 
    1212__update_URL__ = 'http://danse.chem.utk.edu/prview_version.php' 
     
    7575DATALOADER_SHOW = True 
    7676CLEANUP_PLOT = False 
    77 WELCOME_PANEL_SHOW = False 
     77WELCOME_PANEL_ON = False 
    7878#Show or hide toolbar at the start up 
    7979TOOLBAR_SHOW = True 
    8080#Open Save project menu 
    81 OPEN_SAVE_PROJECT_MENU = True 
     81OPEN_SAVE_PROJECT_MENU = False 
    8282#VIEW MENU 
    8383VIEW_MENU = True 
  • 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', '') 
  • sansview/local_config.py

    rd4c19e5 r8e3dc19  
    7373SPLASH_SCREEN_HEIGHT = 366 
    7474SS_MAX_DISPLAY_TIME = 6000 #6 sec 
     75WELCOME_PANEL_ON  = True 
    7576WELCOME_PANEL_SHOW = False 
    7677CLEANUP_PLOT = False 
Note: See TracChangeset for help on using the changeset viewer.