Exemple #1
0
 def _setRunning(self):
     '''update button'''
     self.btn_run_now.setChecked(True)
     self.btn_run_now.setText('Stop')
     self.display.workspace.gui.undoRedo.is_active = False
     # TODO: remove try... if .display if not a weakref.proxy any more
     try:
         d = self.display.__repr__.__self__
     except:
         d = self.display
     # SHOW RUN INDICATOR
     self._runIndicator = CircleWidget(d)
     self._runIndicator.move(2, 2)
     self._runIndicator.show()