Changeset d4881f6a in sasview for src/sas/qtgui/Perspectives
- Timestamp:
- Nov 15, 2017 6:52:27 AM (7 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:
- c7ebb37
- Parents:
- fa81e94
- Location:
- src/sas/qtgui/Perspectives
- Files:
-
- 6 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Perspectives/Invariant/InvariantUtils.py
rf1f3e6a rd4881f6a 1 def enum(*sequential, **named): 2 enums = dict(list(zip(sequential, list(range(len(sequential))))), **named) 3 return type('Enum', (), enums) 1 from sas.qtgui.Utilities.GuiUtils import enum 4 2 5 3 WIDGETS = enum( 'W_FILENAME', -
src/sas/qtgui/Perspectives/Inversion/DMaxExplorerWidget.py
rfa81e94 rd4881f6a 30 30 logger = logging.getLogger(__name__) 31 31 32 def enum(*sequential, **named): 33 enums = dict(list(zip(sequential, list(range(len(sequential))))), **named) 34 return type('Enum', (), enums) 32 from sas.qtgui.Utilities.GuiUtils import enum 35 33 36 34 W = enum( 'NPTS', #0 -
src/sas/qtgui/Perspectives/Inversion/InversionPerspective.py
rfa81e94 rd4881f6a 31 31 # TODO: Easy way to scroll through results - no tabs in window(?) - 'spreadsheet' 32 32 # TODO: Method to export results in some meaningful way 33 class InversionWindow(QtWidgets.QTabWidget, Ui_PrInversion): 33 #class InversionWindow(QtWidgets.QTabWidget, Ui_PrInversion): 34 class InversionWindow(QtWidgets.QDialog, Ui_PrInversion): 34 35 """ 35 36 The main window for the P(r) Inversion perspective. … … 117 118 # reset the closability flag 118 119 self.setClosable(value=False) 120 # Tell the MdiArea to close the container 121 self.parentWidget().close() 119 122 event.accept() 120 123 else: … … 253 256 def setupWindow(self): 254 257 """Initialize base window state on init""" 255 self.setTabPosition(0)258 #self.setTabPosition(0) 256 259 self.enableButtons() 257 260 self.estimateBgd.setChecked(True) … … 380 383 for data in data_item: 381 384 # Create initial internal mappings 382 self._data_list[data] = self._calculator.clone() 385 # TODO: in PyQt5 QStandardItem no longer can be used as dict key 386 # Possibly the easiest solution is to subclass QStandardItem 387 # and reimplement __hash__() method so it can be hashed. 388 self._data_list[data] = self._calculator.clone() #<- this crashes 383 389 self._data_set = GuiUtils.dataFromItem(data) 384 390 self.data_plot_list[data] = self.data_plot -
src/sas/qtgui/Perspectives/Inversion/InversionUtils.py
rfa81e94 rd4881f6a 1 def enum(*sequential, **named): 2 enums = dict(list(zip(sequential, list(range(len(sequential))))), **named) 3 return type('Enum', (), enums) 1 from sas.qtgui.Utilities.GuiUtils import enum 4 2 5 3 WIDGETS = enum( 'W_FILENAME', #0 -
src/sas/qtgui/Perspectives/__init__.py
rfa81e94 rd4881f6a 5 5 from .Invariant.InvariantPerspective import InvariantWindow 6 6 from .Inversion.InversionPerspective import InversionWindow 7 from .Corfunc.CorfuncPerspective import CorfuncWindow 7 8 8 9 PERSPECTIVES = { 9 10 FittingWindow.name: FittingWindow, 10 11 InvariantWindow.name: InvariantWindow, 11 InversionWindow.name: InversionWindow 12 InversionWindow.name: InversionWindow, 13 CorfuncWindow.name: CorfuncWindow, 12 14 }
Note: See TracChangeset
for help on using the changeset viewer.