Ignore:
Timestamp:
Feb 16, 2017 6:06:17 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:
2bb20a5, fca1f50
Parents:
4c7dd9f
Message:

Perspectives are now switchable and can be added "dynamically"

File:
1 moved

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Fitting/FittingPerspective.py

    r4c7dd9f r83d6249  
    33from PyQt4 import QtCore 
    44 
    5 from UI.fitting import Ui_Dialog 
     5from UI.FittingUI import Ui_FittingUI 
    66 
    7 class prototype(QtGui.QDialog, Ui_Dialog): 
    8     def __init__(self): 
    9         super(prototype, self).__init__() 
     7class FittingWindow(QtGui.QDialog, Ui_FittingUI): 
     8    name = "Fitting" # For displaying in the combo box 
     9    def __init__(self, manager=None, parent=None): 
     10        super(FittingWindow, self).__init__() 
    1011        self._model_model = QtGui.QStandardItemModel() 
    1112        self._poly_model = QtGui.QStandardItemModel() 
     
    146147if __name__ == "__main__": 
    147148    app = QtGui.QApplication([]) 
    148     dlg = prototype() 
     149    dlg = FittingWindow() 
    149150    dlg.show() 
    150151    sys.exit(app.exec_()) 
Note: See TracChangeset for help on using the changeset viewer.