source: sasview/src/sas/qtgui/Perspectives/Corfunc/CorfuncUtils.py @ f7b73d5

Last change on this file since f7b73d5 was f7b73d5, checked in by Adam Washington <adam.washington@…>, 6 years ago

Display transformed value

  • Property mode set to 100644
File size: 297 bytes
Line 
1def enum(*sequential, **named):
2    enums = dict(zip(sequential, range(len(sequential))), **named)
3    return type('Enum', (), enums)
4
5WIDGETS = enum( 'W_QMIN',
6                'W_QMAX',
7                'W_QCUTOFF',
8                'W_BACKGROUND',
9                'W_TRANSFORM',
10                )
Note: See TracBrowser for help on using the repository browser.