def register_dialog(self, win=None): if win is None: return self.windows.append(win) if not self.execution_started: Logger.add_instruction("Execution of instructions start") self.execution_started = True wx.CallLater(TIME_TO_WAIT_BEFORE_CONTINUING_IN_MILLISECONDS, self.execute_next_instruction)
def _execute_instruction(self, instruction): Logger.add_instruction(instruction) current_window = self._get_current_window() instruction.execute(self, current_window)