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/gen_scatter_panel.py

    rd4895dd rae84427  
    1919matplotlib.use('WXAgg') 
    2020 
     21#from sans.guiframe.gui_manager import MDIFrame 
    2122from data_util.calcthread import CalcThread 
    2223from sans.guiframe.local_perspectives.plotting.SimplePlot import PlotFrame 
     
    11131114        num_graph = str(self.graph_num) 
    11141115        wx.CallAfter(self.parent.draw_graph, new_plot,  
    1115                      title="Graph %s: "% num_graph + new_plot.id ) 
     1116                     title="GEN Graph %s: "% num_graph + new_plot.id ) 
    11161117        self.graph_num += 1 
    11171118                 
     
    11721173        num_graph = str(self.graph_num) 
    11731174        wx.CallAfter(self.parent.draw_graph, new_plot,  
    1174                      title="Graph %s: "% num_graph + new_plot.id ) 
     1175                     title="GEN Graph %s: "% num_graph + new_plot.id ) 
    11751176        self.graph_num += 1 
    1176          
     1177          
    11771178    def set_scale2d(self, scale): 
    11781179        """ 
     
    17941795    GEN SAS main window 
    17951796    """ 
    1796     def __init__(self, parent=None, title="Generic Scattering Calculator", 
     1797    def __init__(self, parent=None, manager= None, title="Generic Scattering Calculator", 
    17971798                size=(PANEL_WIDTH * 1.3, PANEL_HEIGHT * 1.65), *args, **kwds): 
    17981799        """ 
     
    18041805        wx.Frame.__init__(self, parent, *args, **kwds) 
    18051806        self.parent = parent 
     1807        self.base = manager 
    18061808        self.omfpanel = OmfPanel(parent=self) 
    18071809        self.panel = SasGenPanel(parent=self) 
     
    18151817        self._plot_title = '' 
    18161818        self.scale2d = 'log_{10}' 
     1819        self.Bind(wx.EVT_CLOSE, self.on_close) 
    18171820         
    18181821        self._build_toolbar() 
    1819         self._build_menubar() 
    18201822         
    18211823        self.build_panels() 
     
    20082010        frame.Show(True) 
    20092011        frame.SetFocus() 
    2010      
     2012 
     2013    def set_schedule_full_draw(self, panel=None, func='del'):   
     2014        """ 
     2015        Send full draw to gui frame 
     2016        """ 
     2017        self.parent.set_schedule_full_draw(panel, func) 
     2018         
    20112019    def get_npix(self): 
    20122020        """ 
     
    20822090        Close 
    20832091        """ 
     2092        if self.base != None: 
     2093            self.base.gen_frame = None 
    20842094        self.Destroy() 
    20852095         
Note: See TracChangeset for help on using the changeset viewer.