Ignore:
Timestamp:
Nov 15, 2017 6:52:27 AM (6 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Utilities/GuiUtils.py

    rf1f3e6a rd4881f6a  
    864864        input = input.replace(",", "") 
    865865 
     866def enum(*sequential, **named): 
     867    """Create an enumeration object from a list of strings""" 
     868    enums = dict(zip(sequential, range(len(sequential))), **named) 
     869    return type('Enum', (), enums) 
Note: See TracChangeset for help on using the changeset viewer.