Changeset ed4aef2 in sasview for src/sans/perspectives


Ignore:
Timestamp:
May 6, 2014 11:34:46 AM (11 years ago)
Author:
pkienzle
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:
f121904
Parents:
644ca73
Message:

add panel for bumps results

Location:
src/sans/perspectives/fitting
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • src/sans/perspectives/fitting/fitting.py

    r644ca73 red4aef2  
    3636from .fitproblem import FitProblemDictionary 
    3737from .fitpanel import FitPanel 
     38from .resultpanel import ResultPanel, PlotResultEvent 
     39 
    3840from .fit_thread import FitThread 
    3941from .pagestate import Reader 
     
    221223        self.bumps_options_menu = self.menu1.FindItemById(self.id_bumps_options) 
    222224        self.bumps_options_menu.Enable(True) 
     225 
     226        self.id_result_panel = wx.NewId() 
     227        self.menu1.AppendItem(self.id_result_panel, "Fit Results", 
     228                              "Show fit results panel") 
     229        wx.EVT_MENU(owner, self.id_result_panel, 
     230                    lambda ev: self.result_frame.Show(not self.result_frame.IsShown())) 
    223231        self.menu1.AppendSeparator() 
    224232         
     
    525533        self.perspective = [] 
    526534        self.perspective.append(self.fit_panel.window_name) 
     535 
     536        self.result_frame = MDIFrame(self.parent, None, ResultPanel.window_caption, (220, 200)) 
     537        self.result_panel = ResultPanel(parent=self.result_frame, manager=self) 
     538        self.perspective.append(self.result_panel.window_name) 
    527539        
    528540        #index number to create random model name 
     
    539551        #Send the fitting panel to guiframe 
    540552        self.mypanels.append(self.fit_panel) 
     553        self.mypanels.append(self.result_panel) 
    541554        return self.mypanels 
    542555     
     
    15891602        wx.PostEvent(self.parent, StatusEvent(status=msg, info="info", 
    15901603                                                      type="stop")) 
     1604        wx.PostEvent(self.result_panel, PlotResultEvent(result=result)) 
    15911605        # reset fit_engine if changed by simul_fit 
    15921606        if self._fit_engine != self._gui_engine: 
Note: See TracChangeset for help on using the changeset viewer.