Changeset 82efbe9 in sasview
- Timestamp:
- Mar 26, 2019 6:26:16 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl
- Children:
- bad4a52
- Parents:
- 912f438
- Location:
- src/sas/qtgui/Calculators
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Calculators/SldPanel.py
r912f438 r82efbe9 196 196 self.model.item(MODEL.NEUTRON_ABS_XS).setText(format(results.neutron_abs_xs)) 197 197 self.model.item(MODEL.NEUTRON_LENGTH).setText(format(results.neutron_length)) 198 self.model.item(MODEL.NEUTRON_LENGTH).setEnabled(True) 199 self.ui.editNeutronSldReal.setEnabled(True) 200 self.ui.editNeutronSldImag.setEnabled(True) 201 self.ui.editNeutronIncXs.setEnabled(True) 202 self.ui.editNeutronLength.setEnabled(True) 203 self.ui.editNeutronAbsXs.setEnabled(True) 198 204 else: 199 205 self.model.item(MODEL.NEUTRON_SLD_REAL).setText("") … … 202 208 self.model.item(MODEL.NEUTRON_ABS_XS).setText("") 203 209 self.model.item(MODEL.NEUTRON_LENGTH).setText("") 210 self.ui.editNeutronSldReal.setEnabled(False) 211 self.ui.editNeutronSldImag.setEnabled(False) 212 self.ui.editNeutronIncXs.setEnabled(False) 213 self.ui.editNeutronLength.setEnabled(False) 214 self.ui.editNeutronAbsXs.setEnabled(False) 204 215 205 216 if xrayWavelength: … … 208 219 self.model.item(MODEL.XRAY_SLD_REAL).setText(format(results.xray_sld_real)) 209 220 self.model.item(MODEL.XRAY_SLD_IMAG).setText(format(results.xray_sld_imag)) 221 self.ui.editXraySldReal.setEnabled(True) 222 self.ui.editXraySldImag.setEnabled(True) 210 223 else: 211 224 self.model.item(MODEL.XRAY_SLD_REAL).setText("") 212 225 self.model.item(MODEL.XRAY_SLD_IMAG).setText("") 226 self.ui.editXraySldReal.setEnabled(False) 227 self.ui.editXraySldImag.setEnabled(False) 213 228 214 229 def modelReset(self): -
src/sas/qtgui/Calculators/UI/SldPanel.ui
r5c0e717 r82efbe9 182 182 <widget class="QLineEdit" name="editNeutronSldReal"> 183 183 <property name="enabled"> 184 <bool> false</bool>184 <bool>true</bool> 185 185 </property> 186 186 <property name="readOnly"> … … 206 206 <widget class="QLineEdit" name="editNeutronIncXs"> 207 207 <property name="enabled"> 208 <bool> false</bool>208 <bool>true</bool> 209 209 </property> 210 210 <property name="readOnly"> … … 237 237 <widget class="QLineEdit" name="editNeutronSldImag"> 238 238 <property name="enabled"> 239 <bool> false</bool>239 <bool>true</bool> 240 240 </property> 241 241 <property name="readOnly"> … … 254 254 <widget class="QLineEdit" name="editNeutronLength"> 255 255 <property name="enabled"> 256 <bool> false</bool>256 <bool>true</bool> 257 257 </property> 258 258 <property name="readOnly"> … … 271 271 <widget class="QLineEdit" name="editNeutronAbsXs"> 272 272 <property name="enabled"> 273 <bool> false</bool>273 <bool>true</bool> 274 274 </property> 275 275 <property name="readOnly"> … … 340 340 <widget class="QLineEdit" name="editXraySldReal"> 341 341 <property name="enabled"> 342 <bool> false</bool>342 <bool>true</bool> 343 343 </property> 344 344 <property name="readOnly"> … … 350 350 <widget class="QLineEdit" name="editXraySldImag"> 351 351 <property name="enabled"> 352 <bool> false</bool>352 <bool>true</bool> 353 353 </property> 354 354 <property name="readOnly">
Note: See TracChangeset
for help on using the changeset viewer.