コード例 #1
0
    def show_results(self):
        import os.path

        if os.path.exists(self.model.data_file_):
            from infobiotics.mcss.results.mcss_results_widget import McssResultsWidget, centre_window

            w = McssResultsWidget(filename=self.model.data_file_)
            from infobiotics.commons.qt4 import centre_window

            centre_window(w)
            w.show()
        else:
            print "Results file '%s' does not exist, plotting aborted." % self.model.data_file_
コード例 #2
0
    def show_results(self):  # called by ExperimentHandler._finished
        import os.path

        if os.path.exists(self.model.data_file_):
            from infobiotics.mcss.results.mcss_results_widget import McssResultsWidget, centre_window

            w = McssResultsWidget(filename=self.model.data_file_)
            from infobiotics.commons.qt4 import centre_window

            centre_window(w)
            w.show()
            w.raise_()
            qApp.processEvents()
        else:
            error(self.info.ui, "Results file '%s' does not exist, plotting aborted." % self.model.data_file_)