source:
sasview/prview/PrView.py
@
3f0351c6
Last change on this file since 3f0351c6 was 9694eab, checked in by Gervaise Alina <gervyh@…>, 14 years ago | |
---|---|
|
|
File size: 1.2 KB |
Rev | Line | |
---|---|---|
[aa4b8379] | 1 | import wx |
[f3d51f6] | 2 | #import gui_manager |
3 | from sans.guiframe import gui_manager | |
[9694eab] | 4 | from sans.guiframe.gui_style import GUIFRAME |
[4a5de6f] | 5 | # For py2exe, import config here |
6 | import local_config | |
[0fdcd1e] | 7 | import sys |
[75df58b] | 8 | |
[aa4b8379] | 9 | |
[0fdcd1e] | 10 | # Application dimensions |
11 | APP_HEIGHT = 780 | |
12 | APP_WIDTH = 850 | |
[1767884] | 13 | PROG_SPLASH_SCREEN = "images/ball.png" |
[aa4b8379] | 14 | |
15 | class PrApp(gui_manager.ViewApp): | |
[7116b6e0] | 16 | """ |
17 | """ | |
[1767884] | 18 | SIZE = (APP_WIDTH, APP_HEIGHT) |
19 | TITLE = local_config.__appname__ | |
20 | PROG_SPLASH_PATH = None | |
[7f795490] | 21 | STYLE = GUIFRAME.DEFAULT_STYLE |
[aa4b8379] | 22 | |
[1767884] | 23 | class PrView(): |
[7116b6e0] | 24 | """ |
25 | """ | |
[f3d51f6] | 26 | def __init__(self): |
27 | """ | |
28 | """ | |
29 | #from gui_manager import ViewApp | |
[aa4b8379] | 30 | #self.gui = gui_manager.ViewApp(0) |
31 | self.gui = PrApp(0) | |
[4a5de6f] | 32 | # Add perspectives to the basic application |
33 | # Additional perspectives can still be loaded | |
34 | # dynamically | |
35 | import perspectives.pr as module | |
[ee6f84c] | 36 | self.pr_plug = module.Plugin(standalone=True) |
[aa4b8379] | 37 | self.gui.add_perspective(self.pr_plug) |
[4a5de6f] | 38 | |
39 | # Build the GUI | |
40 | self.gui.build_gui() | |
41 | ||
[f3d51f6] | 42 | # Set the application manager for the GUI |
43 | self.gui.set_manager(self) | |
44 | ||
45 | # Start the main loop | |
46 | self.gui.MainLoop() | |
[aa4b8379] | 47 | |
[f3d51f6] | 48 | |
49 | if __name__ == "__main__": | |
[1767884] | 50 | sansview = PrView() |
Note: See TracBrowser
for help on using the repository browser.