Changeset 61a92d4 in sasview for src/sas/qtgui/Perspectives/Fitting
- Timestamp:
- Apr 28, 2017 9:26:55 AM (8 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:
- 28a09b0
- Parents:
- 0215e0a
- Location:
- src/sas/qtgui/Perspectives/Fitting
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/sas/qtgui/Perspectives/Fitting/FittingPerspective.py ¶
r0215e0a r61a92d4 6 6 7 7 import sas.qtgui.Utilities.GuiUtils as GuiUtils 8 import sas.qtgui. ObjectFactory as ObjectFactory8 import sas.qtgui.Utilities.ObjectLibrary as ObjectLibrary 9 9 10 10 from FittingWidget import FittingWidget … … 75 75 """ 76 76 tab = FittingWidget(parent=self.parent, data=data, id=self.maxIndex+1) 77 # Add this tab to the object factory so it can be retrieved by scripting/jupyter78 Object Factory.addObject(self.tabName(), tab)77 # Add this tab to the object library so it can be retrieved by scripting/jupyter 78 ObjectLibrary.addObject(self.tabName(), tab) 79 79 self.tabs.append(tab) 80 80 self.maxIndex += 1 … … 96 96 if len(self.tabs) <= 1: 97 97 return 98 Object Factory.deleteObject(self.tabs[index].accessibleName())98 ObjectLibrary.deleteObjectByRef(self.tabs[index]) 99 99 del self.tabs[index] 100 100 self.removeTab(index) -
TabularUnified src/sas/qtgui/Perspectives/Fitting/FittingWidget.py ¶
r180bd54 r61a92d4 122 122 self.model_parameters = None 123 123 self.lstParams.setAlternatingRowColors(True) 124 stylesheet = """ 125 QTreeView{ 126 alternate-background-color: #f6fafb; 127 background: #e8f4fc; 128 } 129 """ 130 self.lstParams.setStyleSheet(stylesheet) 124 131 125 132 # Poly model displayed in poly list … … 572 579 self.q_range_min, self.q_range_max, self.npts, self.log_points, self.weighting = \ 573 580 self.options_widget.state() 581 # set Q range labels on the main tab 582 self.lblMinRangeDef.setText(str(self.q_range_min)) 583 self.lblMaxRangeDef.setText(str(self.q_range_max)) 574 584 self.onPlot() 575 585 -
TabularUnified src/sas/qtgui/Perspectives/Fitting/OptionsWidget.py ¶
r180bd54 r61a92d4 141 141 #print "MODEL CHANGED for property: %s. The value is now: %s" % \ 142 142 # (MODEL[top.row()], str(self.model.item(top.row()).text())) 143 143 144 # update if there's something to update 144 if str(self.model.item(top.row()).text()): #and 'RANGE' in MODEL[top.row()]:145 if str(self.model.item(top.row()).text()): 145 146 self.plot_signal.emit() 146 147
Note: See TracChangeset
for help on using the changeset viewer.