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