Changeset 731efec in sasview for src/sas/qtgui/Perspectives
- Timestamp:
- Feb 12, 2018 2:12:13 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:
- 6ca0da0
- Parents:
- 235d766
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/ConstraintWidget.py
r235d766 r731efec 1 1 import os 2 2 import sys 3 import logging 3 4 4 5 from twisted.internet import threads … … 100 101 Intercept update signals from fitting tabs 101 102 """ 102 if tab is not None: 103 ObjectLibrary.getObject(tab).constraintAddedSignal.connect(self.initializeFitList) 104 ObjectLibrary.getObject(tab).newModelSignal.connect(self.initializeFitList) 103 if tab is None: 104 return 105 tab_object = ObjectLibrary.getObject(tab) 106 107 # Disconnect all local slots 108 tab_object.disconnect() 109 110 # Reconnect tab signals to local slots 111 tab_object.constraintAddedSignal.connect(self.initializeFitList) 112 tab_object.newModelSignal.connect(self.initializeFitList) 105 113 106 114 def onFitTypeChange(self, checked): … … 548 556 self.tabs_for_fitting[tab_name] = True 549 557 558 # Disable signals so we don't get infinite call recursion 559 self.tblTabList.blockSignals(True) 550 560 self.tblTabList.setItem(pos, 0, item) 551 561 self.tblTabList.setItem(pos, 1, self.uneditableItem(model_name)) … … 553 563 # Moniker is editable, so no option change 554 564 item = QtWidgets.QTableWidgetItem(moniker) 555 # Disable signals so we don't get infinite call recursion556 self.tblTabList.blockSignals(True)557 565 self.tblTabList.setItem(pos, 3, item) 558 566 self.tblTabList.blockSignals(False) … … 564 572 return 565 573 self.tblConstraints.setEnabled(True) 574 self.tblConstraints.blockSignals(True) 566 575 for constraint, constraint_name in zip(constraints, constraint_names): 567 576 # Create the text for widget item … … 576 585 self.tblConstraints.insertRow(pos) 577 586 self.tblConstraints.setItem(pos, 0, item) 587 self.tblConstraints.blockSignals(False) 578 588 579 589 def initializeFitList(self): … … 625 635 626 636 def getObjectByName(self, name): 637 """ 638 Given name of the fit, returns associated fit object 639 """ 627 640 for object_name in ObjectLibrary.listObjects(): 628 641 object = ObjectLibrary.getObject(object_name)
Note: See TracChangeset
for help on using the changeset viewer.