Changeset d4881f6a in sasview for src/sas/qtgui/MainWindow


Ignore:
Timestamp:
Nov 15, 2017 6:52:27 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
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
Children:
c7ebb37
Parents:
fa81e94
Message:

Initial implementation of Adam Washington's Corfunc perspective.
Converted to py3/Qt5.

Location:
src/sas/qtgui/MainWindow
Files:
2 edited

Legend:

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

    r53c771e rd4881f6a  
    2929 
    3030import sas.qtgui.Perspectives as Perspectives 
     31 
     32DEFAULT_PERSPECTIVE = "Fitting" 
    3133 
    3234class DataExplorerWindow(DroppableDataLoadWidget): 
     
    161163        self.cbFitting.currentIndexChanged.connect(self.updatePerspectiveCombo) 
    162164        # Set the index so we see the default (Fitting) 
    163         self.updatePerspectiveCombo(0) 
     165        self.cbFitting.setCurrentIndex(self.cbFitting.findText(DEFAULT_PERSPECTIVE)) 
    164166 
    165167    def _perspective(self): 
  • src/sas/qtgui/MainWindow/GuiManager.py

    r7c487846 rd4881f6a  
    3737import sas.qtgui.Perspectives as Perspectives 
    3838from sas.qtgui.Perspectives.Fitting.FittingPerspective import FittingWindow 
    39 from sas.qtgui.MainWindow.DataExplorer import DataExplorerWindow 
     39from sas.qtgui.MainWindow.DataExplorer import DataExplorerWindow, DEFAULT_PERSPECTIVE 
    4040 
    4141class Acknowledgements(QDialog, Ui_Acknowledgements): 
     
    6969        self.addTriggers() 
    7070 
    71         # Populate menus with dynamic data 
    72         # 
    73         # Analysis/Perspectives - potentially 
    74         # Window/current windows 
    75         # 
    76         # Widgets 
    77         # 
    78         # Current displayed perspective 
     71        # Currently displayed perspective 
    7972        self._current_perspective = None 
    8073 
    81         # Invoke the initial perspective 
    82         #self.perspectiveChanged("Fitting") 
     74        # Populate the main window with stuff 
    8375        self.addWidgets() 
    8476 
     
    674666        # For now we'll just update the analysis menu status but when the inversion is implemented delete from here 
    675667        self.checkAnalysisOption(self._workspace.actionInversion) 
    676         print("actionInversion TRIGGERED") 
    677668        # to here and uncomment the following line 
    678         # self.perspectiveChanged("Inversion") 
     669        self.perspectiveChanged("Inversion") 
    679670 
    680671    def actionInvariant(self): 
Note: See TracChangeset for help on using the changeset viewer.