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 c097f02 was
365a17f6,
checked in by Mathieu Doucet <doucetm@…>, 16 years ago
|
Preparing for executable build
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | import wx |
---|
2 | #import gui_manager |
---|
3 | from sans.guiframe import gui_manager |
---|
4 | |
---|
5 | # For py2exe, import config here |
---|
6 | import local_config |
---|
7 | |
---|
8 | |
---|
9 | class SansView(): |
---|
10 | |
---|
11 | def __init__(self): |
---|
12 | """ |
---|
13 | |
---|
14 | """ |
---|
15 | #from gui_manager import ViewApp |
---|
16 | self.gui = gui_manager.ViewApp(0) |
---|
17 | |
---|
18 | # Add perspectives to the basic application |
---|
19 | # Additional perspectives can still be loaded |
---|
20 | # dynamically |
---|
21 | # Note: py2exe can't find dynamically loaded |
---|
22 | # modules. We load the fitting module here |
---|
23 | # to ensure a complete Windows executable build. |
---|
24 | import perspectives.fitting as module |
---|
25 | fitting_plug = module.Plugin() |
---|
26 | self.gui.add_perspective(fitting_plug) |
---|
27 | |
---|
28 | # Build the GUI |
---|
29 | self.gui.build_gui() |
---|
30 | |
---|
31 | # Set the application manager for the GUI |
---|
32 | self.gui.set_manager(self) |
---|
33 | |
---|
34 | # Start the main loop |
---|
35 | self.gui.MainLoop() |
---|
36 | |
---|
37 | |
---|
38 | if __name__ == "__main__": |
---|
39 | sansview = SansView() |
---|
Note: See
TracBrowser
for help on using the repository browser.