Changes in src/sas/qtgui/Perspectives/Fitting/FittingPerspective.py [14ec91c5:3b3b40b] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingPerspective.py
r14ec91c5 r3b3b40b 8 8 from bumps import fitters 9 9 10 import sas.qtgui.Utilities.LocalConfig as LocalConfig 10 11 import sas.qtgui.Utilities.ObjectLibrary as ObjectLibrary 11 12 … … 116 117 tab = FittingWidget(parent=self.parent, data=data, tab_id=self.maxIndex+1) 117 118 tab.is_batch_fitting = is_batch 119 118 120 # Add this tab to the object library so it can be retrieved by scripting/jupyter 119 121 tab_name = self.getTabName(is_batch=is_batch) … … 123 125 self.updateFitDict(data, tab_name) 124 126 self.maxIndex += 1 125 self.addTab(tab, tab_name) 127 icon = QtGui.QIcon() 128 if is_batch: 129 icon.addPixmap(QtGui.QPixmap("src/sas/qtgui/images/icons/layers.svg")) 130 self.addTab(tab, icon, tab_name) 131 # Show the new tab 132 self.setCurrentIndex(self.maxIndex-1) 133 # Notify listeners 126 134 self.tabsModifiedSignal.emit() 127 135 … … 140 148 ObjectLibrary.addObject(tab_name, tab) 141 149 self.tabs.append(tab) 142 self.addTab(tab, tab_name) 150 icon = QtGui.QIcon() 151 icon.addPixmap(QtGui.QPixmap("src/sas/qtgui/images/icons/link.svg")) 152 self.addTab(tab, icon, tab_name) 153 154 # This will be the last tab, so set the index accordingly 155 self.setCurrentIndex(self.count()-1) 143 156 144 157 def updateFitDict(self, item_key, tab_name):
Note: See TracChangeset
for help on using the changeset viewer.