Changeset aa4b8379 in sasview for prview/sansview.py
- Timestamp:
- Jun 18, 2008 6:10:06 PM (16 years ago)
- 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:
- 3fd1ebc
- Parents:
- 4972de2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
prview/sansview.py
r4a5de6f raa4b8379 1 1 import wx 2 2 #import gui_manager 3 3 from sans.guiframe import gui_manager … … 5 5 # For py2exe, import config here 6 6 import local_config 7 from perspectives.pr.pr import NewPrFileEvent 7 8 9 class PrFrame(gui_manager.ViewerFrame): 10 def _on_open(self, event): 11 wx.PostEvent(self, NewPrFileEvent()) 12 13 class PrApp(gui_manager.ViewApp): 14 def OnInit(self): 15 #from gui_manager import ViewerFrame 16 self.frame = PrFrame(None, -1, local_config.__appname__) 17 self.frame.Show(True) 18 19 if hasattr(self.frame, 'special'): 20 print "Special?", self.frame.special.__class__.__name__ 21 self.frame.special.SetCurrent() 22 self.SetTopWindow(self.frame) 23 return True 24 8 25 class SansView(): 9 26 … … 13 30 """ 14 31 #from gui_manager import ViewApp 15 self.gui = gui_manager.ViewApp(0) 32 #self.gui = gui_manager.ViewApp(0) 33 self.gui = PrApp(0) 16 34 17 35 # Add perspectives to the basic application … … 19 37 # dynamically 20 38 import perspectives.pr as module 21 plug = module.Plugin()22 self.gui.add_perspective( plug)39 self.pr_plug = module.Plugin() 40 self.gui.add_perspective(self.pr_plug) 23 41 24 42 # Build the GUI … … 30 48 # Start the main loop 31 49 self.gui.MainLoop() 50 32 51 33 52 if __name__ == "__main__":
Note: See TracChangeset
for help on using the changeset viewer.