Ignore:
Timestamp:
Sep 8, 2018 4:47:34 PM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
61f0c75
Parents:
5b144c6
Message:

Switch to the theory tab when a new theory is being generated. SASVIEW-1045

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow/DataExplorer.py

    r5b144c6 r5d28d6b  
    9898        self.communicator.maskEditorSignal.connect(self.showEditDataMask) 
    9999        self.communicator.extMaskEditorSignal.connect(self.extShowEditDataMask) 
     100        self.communicator.changeDataExplorerTabSignal.connect(self.changeTabs) 
    100101 
    101102        self.cbgraph.editTextChanged.connect(self.enableGraphCombo) 
     
    139140        else: 
    140141            self.current_view = self.freezeView 
     142 
     143    def changeTabs(self, tab=0): 
     144        """ 
     145        Switch tabs of the data explorer 
     146        0: data tab 
     147        1: theory tab 
     148        """ 
     149        assert(tab in [0,1]) 
     150        self.setCurrentIndex(tab) 
    141151 
    142152    def displayHelp(self): 
Note: See TracChangeset for help on using the changeset viewer.