Changeset 1e6d7290 in sasview


Ignore:
Timestamp:
Apr 12, 2012 2:04:39 PM (12 years ago)
Author:
Mathieu Doucet <doucetm@…>
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
Message:

Fixing code style problems

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""" 
    24################################################################################ 
    35#This software was developed by the University of Tennessee as part of the 
     
    1517import os 
    1618import sys 
    17 import xml 
    1819import time 
    19 import py_compile 
    2020import imp 
    2121import warnings 
     
    3838from sans.guiframe.gui_toolbar import GUIToolBar 
    3939from sans.guiframe.data_processor import GridFrame 
    40 from sans.guiframe.data_processor import BatchOutputFrame 
    4140from sans.guiframe.events import EVT_NEW_BATCH 
    4241from sans.dataloader.loader import Loader 
     
    7372 
    7473def 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 
    7981     
    8082def _find_local_config(file, path): 
     
    136138SS_MAX_DISPLAY_TIME = config.SS_MAX_DISPLAY_TIME 
    137139if not WELCOME_PANEL_ON: 
    138         WELCOME_PANEL_SHOW = False 
     140    WELCOME_PANEL_SHOW = False 
    139141else: 
    140142    WELCOME_PANEL_SHOW = True 
     
    593595        if event != None: 
    594596            self.panel_on_focus = event.panel 
    595         panel_name = 'No panel on focus' 
    596         application_name = 'No Selected Analysis' 
    597597        if self.panel_on_focus is not None: 
    598598            #Disable save application if the current panel is in batch mode 
     
    617617        Helper for panel on focus with data_panel 
    618618        """ 
    619         panel_name = self.panel_on_focus.window_caption 
    620619        ID = self.panel_on_focus.uid 
    621620        self._data_panel.set_panel_on_focus(ID) 
     
    731730    def PushStatusText(self, *args, **kwds): 
    732731        """ 
     732            FIXME: No message is passed. What is this supposed to do?  
    733733        """ 
    734734        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") 
    736737 
    737738    def add_perspective(self, plugin): 
     
    21932194                    dialog.Show(True)  
    21942195                except: 
     2196                    print "Error in _onTutorial: %s" % sys.exc_value 
    21952197                    try: 
    21962198                        #in case when the pdf default set other than acrobat 
     
    28412843        is_state_data = False 
    28422844        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 
    28462851     
    28472852        return is_data1d and not is_data2d and not is_theory and not is_state_data 
     
    33113316            logging.error(msg) 
    33123317        # 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") 
    33153318        try: 
    33163319            if os.path.isfile(SPLASH_SCREEN_PATH): 
Note: See TracChangeset for help on using the changeset viewer.