Changeset 1e6d7290 in sasview for sansguiframe/src/sans
- Timestamp:
- Apr 12, 2012 4:04:39 PM (13 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:
- 25c0def
- Parents:
- 92a52ff2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/gui_manager.py
r2e9c3ea r1e6d7290 1 1 """ 2 Gui manager: manages the widgets making up an application 3 """ 2 4 ################################################################################ 3 5 #This software was developed by the University of Tennessee as part of the … … 15 17 import os 16 18 import sys 17 import xml18 19 import time 19 import py_compile20 20 import imp 21 21 import warnings … … 38 38 from sans.guiframe.gui_toolbar import GUIToolBar 39 39 from sans.guiframe.data_processor import GridFrame 40 from sans.guiframe.data_processor import BatchOutputFrame41 40 from sans.guiframe.events import EVT_NEW_BATCH 42 41 from sans.dataloader.loader import Loader … … 73 72 74 73 def get_user_directory(): 75 USERDIR = os.path.join(os.path.expanduser("~"),".sansview") 76 if not os.path.isdir(USERDIR): 77 os.makedirs(USERDIR) 78 return USERDIR 74 """ 75 Returns the user's home directory 76 """ 77 userdir = os.path.join(os.path.expanduser("~"),".sansview") 78 if not os.path.isdir(userdir): 79 os.makedirs(userdir) 80 return userdir 79 81 80 82 def _find_local_config(file, path): … … 136 138 SS_MAX_DISPLAY_TIME = config.SS_MAX_DISPLAY_TIME 137 139 if not WELCOME_PANEL_ON: 138 140 WELCOME_PANEL_SHOW = False 139 141 else: 140 142 WELCOME_PANEL_SHOW = True … … 593 595 if event != None: 594 596 self.panel_on_focus = event.panel 595 panel_name = 'No panel on focus'596 application_name = 'No Selected Analysis'597 597 if self.panel_on_focus is not None: 598 598 #Disable save application if the current panel is in batch mode … … 617 617 Helper for panel on focus with data_panel 618 618 """ 619 panel_name = self.panel_on_focus.window_caption620 619 ID = self.panel_on_focus.uid 621 620 self._data_panel.set_panel_on_focus(ID) … … 731 730 def PushStatusText(self, *args, **kwds): 732 731 """ 732 FIXME: No message is passed. What is this supposed to do? 733 733 """ 734 734 field = self.sb.get_msg_position() 735 wx.Frame.PushStatusText(self, field=field, string=string) 735 wx.Frame.PushStatusText(self, field=field, 736 string="FIXME: PushStatusText called without text") 736 737 737 738 def add_perspective(self, plugin): … … 2193 2194 dialog.Show(True) 2194 2195 except: 2196 print "Error in _onTutorial: %s" % sys.exc_value 2195 2197 try: 2196 2198 #in case when the pdf default set other than acrobat … … 2841 2843 is_state_data = False 2842 2844 if has_meta_data: 2843 if 'invstate' in new_plot.meta_data: is_state_data = True 2844 if 'prstate' in new_plot.meta_data: is_state_data = True 2845 if 'fitstate' in new_plot.meta_data: is_state_data = True 2845 if 'invstate' in new_plot.meta_data: 2846 is_state_data = True 2847 if 'prstate' in new_plot.meta_data: 2848 is_state_data = True 2849 if 'fitstate' in new_plot.meta_data: 2850 is_state_data = True 2846 2851 2847 2852 return is_data1d and not is_data2d and not is_theory and not is_state_data … … 3311 3316 logging.error(msg) 3312 3317 # Display a splash screen on top of the frame. 3313 if len(sys.argv) > 1 and '--time' in sys.argv[1:]:3314 log_time("Starting to display the splash screen")3315 3318 try: 3316 3319 if os.path.isfile(SPLASH_SCREEN_PATH):
Note: See TracChangeset
for help on using the changeset viewer.