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_)
def call_qApp_processEvents(*args): #bruce 050908 """ No other code should directly call qApp.processEvents -- always call it via this function. """ from PyQt4.Qt import qApp #k ?? mc = begin_recursive_event_processing() try: res = qApp.processEvents(*args) # Qt doc says: Processes pending events, for 3 seconds or until there # are no more events to process, whichever is shorter. # (Or it can take one arg, int maxtime (in milliseconds), to change the timing.) finally: end_recursive_event_processing(mc) return res