Last change
on this file since c57ecca was
f721030,
checked in by Piotr Rozyczko <piotr.rozyczko@…>, 9 years ago
|
Initial commit of the main window prototype
|
-
Property mode set to
100755
|
File size:
1.5 KB
|
Rev | Line | |
---|
[f721030] | 1 | def enum(*sequential, **named): |
---|
| 2 | enums = dict(zip(sequential, range(len(sequential))), **named) |
---|
| 3 | return type('Enum', (), enums) |
---|
| 4 | |
---|
| 5 | WIDGETS = enum( 'W_FILENAME', #0 |
---|
| 6 | 'W_QMIN', #1 |
---|
| 7 | 'W_QMAX', #2 |
---|
| 8 | 'W_BACKGROUND', #3 |
---|
| 9 | 'W_SCALE', #4 |
---|
| 10 | 'W_CONTRAST', #5 |
---|
| 11 | 'W_EX_QMIN', #6 |
---|
| 12 | 'W_EX_QMAX', #7 |
---|
| 13 | 'W_ENABLE_LOWQ', #8 |
---|
| 14 | 'W_ENABLE_HIGHQ', #9 |
---|
| 15 | 'W_NPTS_LOWQ', #10 |
---|
| 16 | 'W_NPTS_HIGHQ', #11 |
---|
| 17 | 'W_LOWQ_GUINIER', #12 |
---|
| 18 | 'W_LOWQ_POWER', #13 |
---|
| 19 | 'W_LOWQ_FIT', #14 |
---|
| 20 | 'W_LOWQ_FIX', #15 |
---|
| 21 | 'W_LOWQ_POWER_VALUE', #16 |
---|
| 22 | 'W_HIGHQ_FIT', #17 |
---|
| 23 | 'W_HIGHQ_FIX', #18 |
---|
| 24 | 'W_HIGHQ_POWER_VALUE', #19 |
---|
| 25 | # results |
---|
| 26 | 'W_VOLUME_FRACTION', |
---|
| 27 | 'W_VOLUME_FRACTION_ERR', |
---|
| 28 | 'W_SPECIFIC_SURFACE', |
---|
| 29 | 'W_SPECIFIC_SURFACE_ERR', |
---|
| 30 | 'W_INVARIANT', |
---|
| 31 | 'W_INVARIANT_ERR', |
---|
| 32 | # for the details widget |
---|
| 33 | 'D_TOTAL_QSTAR', |
---|
| 34 | 'D_TOTAL_QSTAR_ERR', |
---|
| 35 | 'D_LOW_QSTAR', |
---|
| 36 | 'D_LOW_QSTAR_ERR', |
---|
| 37 | 'D_HIGH_QSTAR', |
---|
| 38 | 'D_HIGH_QSTAR_ERR', |
---|
| 39 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.