Changeset d4881f6a in sasview for src/sas/qtgui/Calculators


Ignore:
Timestamp:
Nov 15, 2017 6:52:27 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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
Message:

Initial implementation of Adam Washington's Corfunc perspective.
Converted to py3/Qt5.

Location:
src/sas/qtgui/Calculators
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Calculators/DensityPanel.py

    rfbfc488 rd4881f6a  
    1515from sas.qtgui.Calculators.UI.DensityPanel import Ui_DensityPanel 
    1616 
    17 def enum(*sequential, **named): 
    18     enums = dict(list(zip(sequential, list(range(len(sequential))))), **named) 
    19     return type('Enum', (), enums) 
     17from sas.qtgui.Utilities.GuiUtils import enum 
    2018 
    2119MODEL = enum( 
  • src/sas/qtgui/Calculators/SldPanel.py

    rfbfc488 rd4881f6a  
    1616from sas.qtgui.Calculators.UI.SldPanel import Ui_SldPanel 
    1717 
    18 def enum(*sequential, **named): 
    19     enums = dict(list(zip(sequential, list(range(len(sequential))))), **named) 
    20     return type('Enum', (), enums) 
     18from sas.qtgui.Utilities.GuiUtils import enum 
    2119 
    2220MODEL = enum( 
Note: See TracChangeset for help on using the changeset viewer.