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 a284455 was
9590db6,
checked in by Gervaise Alina <gervyh@…>, 14 years ago
|
add splashpage
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | import wx |
---|
2 | #import gui_manager |
---|
3 | from sans.guiframe import gui_manager |
---|
4 | from sans.guiframe.gui_style import GUIFRAME |
---|
5 | # For py2exe, import config here |
---|
6 | import local_config |
---|
7 | import sys |
---|
8 | |
---|
9 | |
---|
10 | # Application dimensions |
---|
11 | APP_HEIGHT = 780 |
---|
12 | APP_WIDTH = 850 |
---|
13 | PROG_SPLASH_SCREEN = "images/ball.png" |
---|
14 | |
---|
15 | class PrApp(gui_manager.ViewApp): |
---|
16 | """ |
---|
17 | """ |
---|
18 | SIZE = (APP_WIDTH, APP_HEIGHT) |
---|
19 | TITLE = local_config.__appname__ |
---|
20 | PROG_SPLASH_PATH = PROG_SPLASH_SCREEN |
---|
21 | STYLE = GUIFRAME.DEFAULT_STYLE |
---|
22 | |
---|
23 | class PrView(): |
---|
24 | """ |
---|
25 | """ |
---|
26 | def __init__(self): |
---|
27 | """ |
---|
28 | """ |
---|
29 | #from gui_manager import ViewApp |
---|
30 | #self.gui = gui_manager.ViewApp(0) |
---|
31 | self.gui = PrApp(0) |
---|
32 | # Add perspectives to the basic application |
---|
33 | # Additional perspectives can still be loaded |
---|
34 | # dynamically |
---|
35 | import perspectives.pr as module |
---|
36 | self.pr_plug = module.Plugin(standalone=True) |
---|
37 | self.gui.add_perspective(self.pr_plug) |
---|
38 | |
---|
39 | # Build the GUI |
---|
40 | self.gui.build_gui() |
---|
41 | |
---|
42 | # Set the application manager for the GUI |
---|
43 | self.gui.set_manager(self) |
---|
44 | |
---|
45 | # Start the main loop |
---|
46 | self.gui.MainLoop() |
---|
47 | |
---|
48 | |
---|
49 | if __name__ == "__main__": |
---|
50 | sansview = PrView() |
---|
Note: See
TracBrowser
for help on using the repository browser.