Ignore:
Timestamp:
Jan 17, 2018 9:44:35 AM (6 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:
c5a2722f
Parents:
47d7d2d
Message:

Started work on the complex constraint widget SASVIEW-853

File:
1 edited

Legend:

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

    • Property mode changed from 100755 to 100644
    r47d7d2d r2d466e4  
    99from sas.qtgui.Perspectives.Fitting.UI.ConstraintWidgetUI import Ui_ConstraintWidgetUI 
    1010from sas.qtgui.Perspectives.Fitting.FittingWidget import FittingWidget 
     11from sas.qtgui.Perspectives.Fitting.ComplexConstraint import ComplexConstraint 
    1112 
    1213class ConstraintWidget(QtWidgets.QWidget, Ui_ConstraintWidgetUI): 
     
    434435        Invoke the complex constraint editor 
    435436        """ 
    436         pass 
     437        selected_rows = self.selectedParameters(self.tblTabList) 
     438        assert(len(selected_rows)==2) 
     439 
     440        tab_list = [ObjectLibrary.getObject(self.tblTabList.item(s, 0).data(0)) for s in selected_rows] 
     441        # Create and display the widget for param1 and param2 
     442        cc_widget = ComplexConstraint(self, tabs=tab_list) 
     443        if cc_widget.exec_() != QtWidgets.QDialog.Accepted: 
     444            return 
     445 
     446        #constraint = Constraint() 
     447        #c_text = cc_widget.txtConstraint.text() 
     448        pass 
Note: See TracChangeset for help on using the changeset viewer.