Changeset 0c2c324 in sasview for src/sas/sasgui/perspectives


Ignore:
Timestamp:
Mar 21, 2016 9:04:45 AM (9 years ago)
Author:
krzywon
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:
fd82d9b
Parents:
c812d11
git-author:
Jeff Krzywon <krzywon@…> (03/21/16 08:58:25)
git-committer:
Jeff Krzywon <krzywon@…> (03/21/16 09:04:45)
Message:

Resolve #456 - The filename (or first file in a constrained/simultaneous fit) and the time and date when the fit completed are now shown in the title bar of the results panel.

File:
1 edited

Legend:

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

    rd85c194 r0c2c324  
    99import wx.lib.newevent 
    1010from wx.aui import AuiNotebook as Notebook 
     11 
     12import datetime 
    1113 
    1214from bumps.gui.convergence_view import ConvergenceView 
     
    5658 
    5759    def on_plot_results(self, event): 
    58         self.frame.Show() 
     60        self.frame.Show(True) 
    5961        result = event.result[0][0] 
     62        filename = result.data.sas_data.filename 
     63        current_time = datetime.datetime.now().strftime("%I:%M%p, %B %d, %Y") 
     64        self.parent.SetTitle(self.window_name + " - " + filename + " - " + current_time) 
    6065        if hasattr(result, 'convergence'): 
    6166            best, pop = result.convergence[:, 0], result.convergence[:, 1:] 
Note: See TracChangeset for help on using the changeset viewer.