Changeset ae84427 in sasview for invariantview/src/sans


Ignore:
Timestamp:
Apr 20, 2013 7:14:41 PM (12 years ago)
Author:
Jae Cho <jhjcho@…>
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:
ba152f1
Parents:
d4895dd
Message:

mdi frames for main applications

Location:
invariantview/src/sans/perspectives/invariant
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • invariantview/src/sans/perspectives/invariant/invariant.py

    r6813da7d rae84427  
    1717import copy 
    1818import logging 
    19  
     19from sans.guiframe.gui_manager import MDIFrame 
    2020from sans.guiframe.dataFitting import Data1D 
    2121from sans.guiframe.events import NewPlotEvent 
     
    8383        ## Save a reference to the parent 
    8484        self.parent = parent 
    85         self.invariant_panel = InvariantPanel(parent=self.parent) 
     85        self.frame = MDIFrame(self.parent, None, 'None', (100, 200))      
     86        self.invariant_panel = InvariantPanel(parent=self.frame)         
     87        self.frame.set_panel(self.invariant_panel) 
     88        self._frame_set_helper() 
    8689        self.invariant_panel.set_manager(manager=self) 
    8790        self.perspective.append(self.invariant_panel.window_name)   
  • invariantview/src/sans/perspectives/invariant/invariant_panel.py

    rf686259 rae84427  
    7171        self.SetWindowVariant(variant=FONT_VARIANT) 
    7272        #Object that receive status event 
    73         self.parent = parent 
     73        self.parent = parent.parent 
    7474        #plug-in using this panel 
    7575        self._manager = manager  
     
    646646                                                  type="stop")) 
    647647            return 
    648         self.Show(False) 
     648        #self.Show(False) 
    649649        r_msg = '' 
    650650        try: 
     
    712712            wx.PostEvent(self.parent, 
    713713                StatusEvent(status='\nFinished invariant computation...')) 
    714         self.Show(True) 
     714        #self.Show(True) 
    715715        self.Refresh() 
    716716             
Note: See TracChangeset for help on using the changeset viewer.