source: sasview/guiframe/gui_style.py @ 7bc88bf

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 7bc88bf was 3feed3e, checked in by Gervaise Alina <gervyh@…>, 14 years ago

working on guiframe data loader

  • Property mode set to 100644
File size: 770 bytes
Line 
1
2"""
3Provide the style for guiframe
4"""
5
6class GUIFRAME:
7    MANAGER_ON = 1
8    FLOATING_PANEL = 2
9    FIXED_PANEL = 4
10    PLOTTING_ON = 8
11    DATALOADER_ON = 16
12    TOOL_ON = 32
13    SINGLE_APPLICATION = 64
14    DEFAULT_STYLE = SINGLE_APPLICATION|DATALOADER_ON|PLOTTING_ON|FIXED_PANEL
15    MULTIPLE_APPLICATIONS = DEFAULT_STYLE|MANAGER_ON
16
17if __name__ == "__main__":
18 
19    print GUIFRAME.DEFAULT_STYLE
20    print GUIFRAME.FLOATING_PANEL
21    print GUIFRAME.SINGLE_APPLICATION
22    style = GUIFRAME.MULTIPLE_APPLICATIONS
23    style &= GUIFRAME.PLOTTING_ON
24    print style == GUIFRAME.PLOTTING_ON
25    style1 = GUIFRAME.MULTIPLE_APPLICATIONS
26    style1 &= (~GUIFRAME.MANAGER_ON)
27    print style1 == GUIFRAME.DEFAULT_STYLE
28    print style1
29   
30 
31 
Note: See TracBrowser for help on using the repository browser.