def show_report(self, text, evt=None): shown = False try: self.report_frame.Raise() shown = True except: del self.report_frame if not shown: self.report_frame = ReportFrame(self.wxparent) self.report_frame.SetFont(Font(8)) self.report_frame.set_text(text) self.report_frame.SetFont(Font(8)) self.report_frame.Raise()
def show_report(self, fitresult, evt=None): shown = False try: self.report_frame.Raise() shown = True except: del self.report_frame if not shown: self.report_frame = ReportFrame(self.wxparent) model_repr = fitresult.model._reprstring(long=True) report = fit_report(fitresult, show_correl=True, min_correl=0.25, sort_pars=True) self.report_frame.SetFont(Font(8)) self.report_frame.set_text(report) self.report_frame.SetFont(Font(8)) self.report_frame.Raise()