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 3f0351c6 was
f036c692,
checked in by Gervaise Alina <gervyh@…>, 14 years ago
|
working on toolbar
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | |
---|
2 | """ |
---|
3 | Provide the style for guiframe |
---|
4 | """ |
---|
5 | import wx |
---|
6 | |
---|
7 | class GUIFRAME: |
---|
8 | MANAGER_ON = 1 |
---|
9 | FLOATING_PANEL = 2 |
---|
10 | FIXED_PANEL = 4 |
---|
11 | PLOTTING_ON = 8 |
---|
12 | DATALOADER_ON = 16 |
---|
13 | TOOL_ON = 32 |
---|
14 | SINGLE_APPLICATION = 64 |
---|
15 | WELCOME_PANEL_ON = 128 |
---|
16 | DEFAULT_STYLE = SINGLE_APPLICATION|DATALOADER_ON|PLOTTING_ON|FIXED_PANEL |
---|
17 | MULTIPLE_APPLICATIONS = DEFAULT_STYLE|MANAGER_ON|WELCOME_PANEL_ON |
---|
18 | |
---|
19 | class GUIFRAME_ID: |
---|
20 | UNDO_ID = wx.NewId() |
---|
21 | REDO_ID = wx.NewId() |
---|
22 | BOOKMARK_ID = wx.NewId() |
---|
23 | SAVE_ID = wx.NewId() |
---|
24 | ZOOM_IN_ID = wx.NewId() |
---|
25 | ZOOM_OUT_ID = wx.NewId() |
---|
26 | ZOOM_ID = wx.NewId() |
---|
27 | DRAG_ID = wx.NewId() |
---|
28 | RESET_ID = wx.NewId() |
---|
29 | PREVIEW_ID = wx.NewId() |
---|
30 | PRINT_ID = wx.NewId() |
---|
31 | CURRENT_APPLICATION = wx.NewId() |
---|
32 | |
---|
33 | if __name__ == "__main__": |
---|
34 | |
---|
35 | print GUIFRAME.DEFAULT_STYLE |
---|
36 | print GUIFRAME.FLOATING_PANEL |
---|
37 | print GUIFRAME.SINGLE_APPLICATION |
---|
38 | style = GUIFRAME.MULTIPLE_APPLICATIONS |
---|
39 | style &= GUIFRAME.PLOTTING_ON |
---|
40 | print style == GUIFRAME.PLOTTING_ON |
---|
41 | style1 = GUIFRAME.MULTIPLE_APPLICATIONS |
---|
42 | style1 &= (~GUIFRAME.MANAGER_ON) |
---|
43 | print style1 == GUIFRAME.DEFAULT_STYLE |
---|
44 | print style1 |
---|
45 | |
---|
46 | |
---|
47 | |
---|
Note: See
TracBrowser
for help on using the repository browser.