Changeset 4a5de6f in sasview for prview/sansview.py


Ignore:
Timestamp:
May 27, 2008 2:34:30 PM (16 years ago)
Author:
Mathieu Doucet <doucetm@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
fd68aa9
Parents:
278cc25
Message:

Modified for Windows executable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • prview/sansview.py

    rf3d51f6 r4a5de6f  
    22#import gui_manager 
    33from sans.guiframe import gui_manager 
     4 
     5# For py2exe, import config here 
     6import local_config 
     7 
    48class SansView(): 
    59     
     
    1115        self.gui = gui_manager.ViewApp(0) 
    1216         
     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         
    1327        # Set the application manager for the GUI 
    1428        self.gui.set_manager(self) 
Note: See TracChangeset for help on using the changeset viewer.