- Timestamp:
- Nov 20, 2018 4:06:25 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- be7c981
- Parents:
- 8c85ac1
- Location:
- src/sas/qtgui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Fitting/ConstraintWidget.py
raed0532 rc4c4957 1 1 import logging 2 import copy 2 3 3 4 from twisted.internet import threads … … 364 365 365 366 # Show the grid panel 366 self.parent.communicate.sendDataToGridSignal.emit(result[0]) 367 page_name = "ConstSimulPage" 368 results = copy.deepcopy(result[0]) 369 results.append(page_name) 370 self.parent.communicate.sendDataToGridSignal.emit(results) 367 371 368 372 msg = "Fitting completed successfully in: %s s.\n" % GuiUtils.formatNumber(elapsed) -
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
ra2b8607 rc4c4957 1493 1493 1494 1494 # Show the grid panel 1495 self.communicate.sendDataToGridSignal.emit(result[0]) 1495 page_name = "BatchPage" + str(self.tab_id) 1496 results = copy.deepcopy(result[0]) 1497 results.append(page_name) 1498 self.communicate.sendDataToGridSignal.emit(results) 1496 1499 1497 1500 elapsed = result[1] -
src/sas/qtgui/Utilities/GridPanel.py
r75906a1 rc4c4957 126 126 return 127 127 128 def addTabPage(self ):128 def addTabPage(self, name=None): 129 129 """ 130 130 Add new tab page with QTableWidget … … 141 141 # However, some models have LONG names, which doesn't look well on the tab bar. 142 142 self.tab_number += 1 143 tab_name = "Tab " + str(self.tab_number) 143 if name is not None: 144 tab_name = name 145 else: 146 tab_name = "Tab " + str(self.tab_number) 144 147 # each table needs separate slots. 145 148 tab_widget.customContextMenuRequested.connect(self.showContextMenu) … … 153 156 Create a new tab with batch fitting results 154 157 """ 158 # pull out page name from results 159 page_name = None 160 if len(results)>=2: 161 if isinstance(results[-1], str): 162 page_name = results[-1] 163 _ = results.pop(-1) 164 155 165 if self.has_data: 156 self.addTabPage() 166 self.addTabPage(name=page_name) 167 else: 168 self.tabWidget.setTabText(0, page_name) 157 169 # Update the new widget 158 170 # Fill in the table from input data in the last/newest page
Note: See TracChangeset
for help on using the changeset viewer.