source: sasview/prview/PrView.py @ 4753fc2

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 4753fc2 was 2096e78, checked in by Gervaise Alina <gervyh@…>, 14 years ago

remove unused code

  • Property mode set to 100644
File size: 1.2 KB
RevLine 
[aa4b8379]1import wx
[f3d51f6]2#import gui_manager
3from sans.guiframe import gui_manager
[4a5de6f]4
5# For py2exe, import config here
6import local_config
[0fdcd1e]7import sys
[75df58b]8
[aa4b8379]9
[0fdcd1e]10# Application dimensions
11APP_HEIGHT = 780
12APP_WIDTH  = 850
[1767884]13PROG_SPLASH_SCREEN = "images/ball.png"
[aa4b8379]14
15class PrApp(gui_manager.ViewApp):
[7116b6e0]16    """
17    """
[1767884]18    SIZE = (APP_WIDTH, APP_HEIGHT)
19    TITLE = local_config.__appname__
20    PROG_SPLASH_PATH = None
[aa4b8379]21   
[1767884]22class PrView():
[7116b6e0]23    """
24    """
[f3d51f6]25    def __init__(self):
26        """
27        """
28        #from gui_manager import ViewApp
[aa4b8379]29        #self.gui = gui_manager.ViewApp(0)
30        self.gui = PrApp(0)
[4a5de6f]31        # Add perspectives to the basic application
32        # Additional perspectives can still be loaded
33        # dynamically
34        import perspectives.pr as module
[ee6f84c]35        self.pr_plug = module.Plugin(standalone=True)
[aa4b8379]36        self.gui.add_perspective(self.pr_plug)
[4a5de6f]37           
38        # Build the GUI
39        self.gui.build_gui()
40       
[f3d51f6]41        # Set the application manager for the GUI
42        self.gui.set_manager(self)
43       
44        # Start the main loop
45        self.gui.MainLoop() 
[aa4b8379]46       
[f3d51f6]47
48if __name__ == "__main__": 
[1767884]49    sansview = PrView()
Note: See TracBrowser for help on using the repository browser.