Changeset 9776c82 in sasview for src/sas


Ignore:
Timestamp:
May 19, 2015 9:46:58 AM (9 years ago)
Author:
Paul Kienzle <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:
63d314b, 5276eeb
Parents:
bc84fa7
Message:

make the Fit Results panel visible when selected from menu

File:
1 edited

Legend:

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

    r765e47c r9776c82  
    186186        self.id_result_panel = wx.NewId() 
    187187        self.menu1.Append(self.id_result_panel, "Fit Results", "Show fit results panel") 
    188         wx.EVT_MENU(owner, self.id_result_panel, lambda ev: self.result_frame.Show()) 
     188        wx.EVT_MENU(owner, self.id_result_panel, self.on_fit_results) 
    189189        self.menu1.AppendSeparator() 
    190190 
     
    741741 
    742742    def on_bumps_options(self, event=None): 
     743        """ 
     744        Open the bumps options panel. 
     745        """ 
    743746        from bumps.gui.fit_dialog import OpenFitOptions 
    744747        OpenFitOptions() 
     748 
     749    def on_fit_results(self, event=None): 
     750        """ 
     751        Make the Fit Results panel visible. 
     752        """ 
     753        self.result_frame.Show() 
     754        self.result_frame.Raise() 
    745755 
    746756    def stop_fit(self, uid): 
Note: See TracChangeset for help on using the changeset viewer.