Changeset e6de6b8 in sasview for src/sas/sasgui/guiframe


Ignore:
Timestamp:
Oct 7, 2016 4:03:49 PM (8 years ago)
Author:
krzywon
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, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
95eef00
Parents:
ff3f5821
Message:

Delinting and small structural changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/guiframe/gui_manager.py

    r998ca90 re6de6b8  
    11521152                self.delete_panel(ID) 
    11531153                break 
    1154         self.cpanel_on_focus.SetFocus() 
     1154        if self.cpanel_on_focus is not None: 
     1155            self.cpanel_on_focus.SetFocus() 
    11551156 
    11561157 
     
    19171918                self._default_save_location = os.path.dirname(path) 
    19181919                dlg.Destroy() 
    1919  
    1920             # Reset to a base state 
    1921             self._on_reset_state() 
    1922  
    1923             # Load the project file 
    1924             self.load_state(path=path, is_project=True) 
     1920                # Reset to a base state 
     1921                self._on_reset_state() 
     1922                # Load the project file 
     1923                self.load_state(path=path, is_project=True) 
    19251924 
    19261925    def _on_reset_state(self): 
     
    19301929        """ 
    19311930        # Reset all plugins to their base state 
     1931        self._data_panel.set_panel_on_focus() 
     1932        # Remove all loaded data 
     1933        self._data_panel.selection_cbox.SetValue('Select all Data') 
     1934        self._data_panel._on_selection_type(None) 
    19321935        for plugin in self.plugins: 
    19331936            plugin.clear_panel() 
    19341937        # Reset plot number to 0 
    19351938        self.graph_num = 0 
    1936         # Remove all loaded data 
    1937         self._data_panel.selection_cbox.SetValue('Select all Data') 
    1938         self._data_panel._on_selection_type(None) 
    19391939 
    19401940    def _on_save_application(self, event): 
Note: See TracChangeset for help on using the changeset viewer.