Changeset 91ad45c in sasview for src/sas/qtgui/Perspectives/Fitting/ConstraintWidget.py
- Timestamp:
- Mar 1, 2018 8:02:28 AM (7 years ago)
- 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:
- e4c475b7
- Parents:
- fde5bcd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/ConstraintWidget.py
rc736154 r91ad45c 32 32 self.page_id = 301 33 33 34 # Are we chain fitting? 35 self.is_chain_fitting = False 36 34 37 # Remember previous content of modified cell 35 38 self.current_cell = "" … … 66 69 self.tblTabList.customContextMenuRequested.connect(self.showModelContextMenu) 67 70 71 # Single Fit is the default, so disable chainfit 72 self.chkChain.setVisible(False) 73 68 74 # disabled constraint 69 75 labels = ['Constraint'] … … 86 92 self.cmdFit.clicked.connect(self.onFit) 87 93 self.cmdHelp.clicked.connect(self.onHelp) 94 self.chkChain.toggled.connect(self.onChainFit) 88 95 89 96 # QTableWidgets … … 117 124 source = self.sender().objectName() 118 125 self.currentType = "BatchPage" if source == "btnBatch" else "FitPage" 126 self.chkChain.setVisible(source=="btnBatch") 119 127 self.initializeFitList() 120 128 … … 130 138 """ 131 139 return [tab for tab in self.tabs_for_fitting if self.tabs_for_fitting[tab]] 140 141 def onChainFit(self, is_checked): 142 """ 143 Respond to selecting the Chain Fit checkbox 144 """ 145 self.is_chain_fitting = is_checked 132 146 133 147 def onFit(self): … … 192 206 page_id=page_ids, 193 207 updatefn=updater, 194 completefn=completefn) 208 completefn=completefn, 209 reset_flag=self.is_chain_fitting) 195 210 196 211 if LocalConfig.USING_TWISTED: … … 370 385 object = ObjectLibrary.getObject(tab) 371 386 if not isinstance(object, FittingWidget): return False 372 if object.data is None: return False387 if not object.data_is_loaded : return False 373 388 return True 374 389
Note: See TracChangeset
for help on using the changeset viewer.