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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • calculatorview/src/sans/perspectives/calculator/data_operator.py

    r657e52c rae84427  
    615615        event.Skip() 
    616616     
     617    def disconnect_panels(self): 
     618        """ 
     619        """ 
     620        self.out_pic.connect.disconnect() 
     621        self.equal_pic.connect.disconnect() 
     622        self.data1_pic.connect.disconnect() 
     623        self.operator_pic.connect.disconnect() 
     624        self.data2_pic.connect.disconnect() 
     625     
    617626    def on_close(self, event): 
    618627        """ 
     
    926935         
    927936class DataOperatorWindow(wx.Frame): 
    928     def __init__(self, parent, *args, **kwds): 
     937    def __init__(self, parent, manager, *args, **kwds): 
    929938        kwds["size"] = (PANEL_WIDTH, PANEL_HEIGTH) 
    930939        wx.Frame.__init__(self, parent, *args, **kwds) 
    931940        self.parent = parent 
     941        self.manager = manager 
    932942        self.panel = DataOperPanel(parent=self) 
    933943        wx.EVT_CLOSE(self, self.OnClose) 
     
    939949        On close event 
    940950        """ 
    941         self.Show(False) 
     951        if self.manager != None: 
     952            self.manager.data_operator_frame = None 
     953        self.panel.disconnect_panels() 
     954        self.Destroy() 
    942955 
    943956         
Note: See TracChangeset for help on using the changeset viewer.