Changeset d4dac80 in sasview for src/sas/qtgui/Utilities/GuiUtils.py
- Timestamp:
- Apr 25, 2018 4:59:33 AM (6 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:
- 017b285
- Parents:
- 93c79b5
- git-author:
- Piotr Rozyczko <rozyczko@…> (03/22/18 14:46:19)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (04/25/18 04:59:33)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Utilities/GuiUtils.py
r27689dc rd4dac80 245 245 customModelDirectoryChanged = QtCore.pyqtSignal() 246 246 247 # Notify the gui manager about new data to be added to the grid view 248 sendDataToGridSignal = QtCore.pyqtSignal(list) 249 250 247 251 def updateModelItemWithPlot(item, update_data, name=""): 248 252 """ … … 333 337 """ 334 338 assert isinstance(item, QtGui.QStandardItem) 335 #assert isinstance(update_data, list)336 339 337 340 # Add the actual Data1D/Data2D object … … 465 468 466 469 return info_item 470 471 def dataFromItem(item): 472 """ 473 Retrieve Data1D/2D component from QStandardItem. 474 The assumption - data stored in SasView standard, in child 0 475 """ 476 return item.child(0).data() 467 477 468 478 def openLink(url): … … 813 823 return (xLabel, yLabel, xscale, yscale) 814 824 815 def dataFromItem(item):816 """817 Retrieve Data1D/2D component from QStandardItem.818 The assumption - data stored in SasView standard, in child 0819 """820 return item.child(0).data()821 822 825 def formatNumber(value, high=False): 823 826 """
Note: See TracChangeset
for help on using the changeset viewer.