source:
sasview/guiframe/gui_style.py
@
4753fc2
Last change on this file since 4753fc2 was 3feed3e, checked in by Gervaise Alina <gervyh@…>, 14 years ago | |
---|---|
|
|
File size: 770 bytes |
Rev | Line | |
---|---|---|
[b7c7a1c] | 1 | |
2 | """ | |
3 | Provide the style for guiframe | |
4 | """ | |
5 | ||
[52b8b74] | 6 | class GUIFRAME: |
7 | MANAGER_ON = 1 | |
8 | FLOATING_PANEL = 2 | |
[7a67e075] | 9 | FIXED_PANEL = 4 |
[3feed3e] | 10 | PLOTTING_ON = 8 |
[7a67e075] | 11 | DATALOADER_ON = 16 |
12 | TOOL_ON = 32 | |
13 | SINGLE_APPLICATION = 64 | |
[3feed3e] | 14 | DEFAULT_STYLE = SINGLE_APPLICATION|DATALOADER_ON|PLOTTING_ON|FIXED_PANEL |
[7a67e075] | 15 | MULTIPLE_APPLICATIONS = DEFAULT_STYLE|MANAGER_ON |
[b7c7a1c] | 16 | |
[52b8b74] | 17 | if __name__ == "__main__": |
18 | ||
19 | print GUIFRAME.DEFAULT_STYLE | |
20 | print GUIFRAME.FLOATING_PANEL | |
[7a67e075] | 21 | print GUIFRAME.SINGLE_APPLICATION |
22 | style = GUIFRAME.MULTIPLE_APPLICATIONS | |
[3feed3e] | 23 | style &= GUIFRAME.PLOTTING_ON |
24 | print style == GUIFRAME.PLOTTING_ON | |
[7a67e075] | 25 | style1 = GUIFRAME.MULTIPLE_APPLICATIONS |
26 | style1 &= (~GUIFRAME.MANAGER_ON) | |
27 | print style1 == GUIFRAME.DEFAULT_STYLE | |
28 | print style1 | |
29 | ||
[52b8b74] | 30 | |
[7a67e075] | 31 |
Note: See TracBrowser
for help on using the repository browser.