source: sasview/prview/sansview.py @ 2310d69

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 2310d69 was 4a5de6f, checked in by Mathieu Doucet <doucetm@…>, 16 years ago

Modified for Windows executable.

  • Property mode set to 100644
File size: 841 bytes
Line 
1
2#import gui_manager
3from sans.guiframe import gui_manager
4
5# For py2exe, import config here
6import local_config
7
8class SansView():
9   
10    def __init__(self):
11        """
12       
13        """
14        #from gui_manager import ViewApp
15        self.gui = gui_manager.ViewApp(0)
16       
17        # Add perspectives to the basic application
18        # Additional perspectives can still be loaded
19        # dynamically
20        import perspectives.pr as module
21        plug = module.Plugin()
22        self.gui.add_perspective(plug)
23           
24        # Build the GUI
25        self.gui.build_gui()
26       
27        # Set the application manager for the GUI
28        self.gui.set_manager(self)
29       
30        # Start the main loop
31        self.gui.MainLoop() 
32
33if __name__ == "__main__": 
34    sansview = SansView()
Note: See TracBrowser for help on using the repository browser.