Ignore:
Timestamp:
Jan 23, 2018 2:20:45 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:
eb1a386
Parents:
ba01ad1
Message:

Minor fixes to the complex constraint widget

File:
1 edited

Legend:

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

    • Property mode changed from 100755 to 100644
    rba01ad1 r0764593  
    6666        self.txtName2.setText(self.tab_names[1]) 
    6767 
     68        # Show only parameters not already constrained 
    6869        self.cbParam1.clear() 
    69         self.cbParam1.addItems(self.params[0]) 
     70        items = [param for i,param in enumerate(self.params[0]) if not self.tabs[0].rowHasConstraint(i)] 
     71        self.cbParam1.addItems(items) 
    7072        self.cbParam2.clear() 
    71         self.cbParam2.addItems(self.params[1]) 
     73        items = [param for i,param in enumerate(self.params[1]) if not self.tabs[1].rowHasConstraint(i)] 
     74        self.cbParam2.addItems(items) 
    7275 
    7376        self.txtParam.setText(self.tab_names[0] + ":" + self.cbParam1.currentText()) 
     
    112115        self.params[1], self.params[0] = self.params[0], self.params[1] 
    113116        self.tab_names[1], self.tab_names[0] = self.tab_names[0], self.tab_names[1] 
     117        self.tabs[1], self.tabs[0] = self.tabs[0], self.tabs[1] 
    114118        # Try to swap parameter names in the line edit 
    115119        current_text = self.txtConstraint.text() 
Note: See TracChangeset for help on using the changeset viewer.