source: sasview/guiframe/gui_style.py @ 3f0351c6

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
RevLine 
[b7c7a1c]1
2"""
3Provide the style for guiframe
4"""
[f036c692]5import wx
[b7c7a1c]6
[52b8b74]7class GUIFRAME:
8    MANAGER_ON = 1
9    FLOATING_PANEL = 2
[7a67e075]10    FIXED_PANEL = 4
[3feed3e]11    PLOTTING_ON = 8
[7a67e075]12    DATALOADER_ON = 16
13    TOOL_ON = 32
14    SINGLE_APPLICATION = 64
[d828481]15    WELCOME_PANEL_ON = 128
[3feed3e]16    DEFAULT_STYLE = SINGLE_APPLICATION|DATALOADER_ON|PLOTTING_ON|FIXED_PANEL
[d828481]17    MULTIPLE_APPLICATIONS = DEFAULT_STYLE|MANAGER_ON|WELCOME_PANEL_ON
[f036c692]18   
19class 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()
[b7c7a1c]32
[52b8b74]33if __name__ == "__main__":
34 
35    print GUIFRAME.DEFAULT_STYLE
36    print GUIFRAME.FLOATING_PANEL
[7a67e075]37    print GUIFRAME.SINGLE_APPLICATION
38    style = GUIFRAME.MULTIPLE_APPLICATIONS
[3feed3e]39    style &= GUIFRAME.PLOTTING_ON
40    print style == GUIFRAME.PLOTTING_ON
[7a67e075]41    style1 = GUIFRAME.MULTIPLE_APPLICATIONS
42    style1 &= (~GUIFRAME.MANAGER_ON)
43    print style1 == GUIFRAME.DEFAULT_STYLE
44    print style1
45   
[52b8b74]46 
[7a67e075]47 
Note: See TracBrowser for help on using the repository browser.