Changes in src/sas/qtgui/Perspectives/Fitting/FittingPerspective.py [3b3b40b:14ec91c5] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/FittingPerspective.py
r3b3b40b r14ec91c5 8 8 from bumps import fitters 9 9 10 import sas.qtgui.Utilities.LocalConfig as LocalConfig11 10 import sas.qtgui.Utilities.ObjectLibrary as ObjectLibrary 12 11 … … 117 116 tab = FittingWidget(parent=self.parent, data=data, tab_id=self.maxIndex+1) 118 117 tab.is_batch_fitting = is_batch 119 120 118 # Add this tab to the object library so it can be retrieved by scripting/jupyter 121 119 tab_name = self.getTabName(is_batch=is_batch) … … 125 123 self.updateFitDict(data, tab_name) 126 124 self.maxIndex += 1 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 125 self.addTab(tab, tab_name) 134 126 self.tabsModifiedSignal.emit() 135 127 … … 148 140 ObjectLibrary.addObject(tab_name, tab) 149 141 self.tabs.append(tab) 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) 142 self.addTab(tab, tab_name) 156 143 157 144 def updateFitDict(self, item_key, tab_name):
Note: See TracChangeset
for help on using the changeset viewer.