Changes in src/sas/qtgui/Utilities/GridPanel.py [4fbf0db:fa762f4] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Utilities/GridPanel.py
r4fbf0db rfa762f4 18 18 ERROR_COLUMN_CAPTION = " (Err)" 19 19 IS_WIN = (sys.platform == 'win32') 20 windowClosedSignal = QtCore.pyqtSignal() 20 21 def __init__(self, parent = None, output_data=None): 21 22 … … 54 55 # Fill in the table from input data 55 56 self.setupTable(widget=self.tblParams, data=output_data) 56 #TODO: This is not what was inteded to be.57 57 if output_data is not None: 58 58 # Set a table tooltip describing the model 59 model_name = list(output_data.keys())[0]59 model_name = output_data[0][0].model.id 60 60 self.tabWidget.setTabToolTip(0, model_name) 61 61 … … 64 64 Overwrite QDialog close method to allow for custom widget close 65 65 """ 66 # Maybe we should just minimize67 self. setWindowState(QtCore.Qt.WindowMinimized)66 # notify the parent so it hides this window 67 self.windowClosedSignal.emit() 68 68 event.ignore() 69 69 … … 153 153 Create a new tab with batch fitting results 154 154 """ 155 self.addTabPage() 155 if self.has_data: 156 self.addTabPage() 156 157 # Update the new widget 157 158 # Fill in the table from input data in the last/newest page … … 311 312 # Check if 2D model. If not, remove theta/phi 312 313 if isinstance(model.data.sas_data, Data1D): 313 param_list.remove('theta') 314 param_list.remove('phi') 314 if 'theta' in param_list: 315 param_list.remove('theta') 316 if 'phi' in param_list: 317 param_list.remove('phi') 315 318 316 319 rows = len(data)
Note: See TracChangeset
for help on using the changeset viewer.