def __init__(self, event_manager): self.event_manager = event_manager self._undo_stack = [] self._redo_stack = [] self._stack_depth = 20 self._current_transaction = None self.action_group = build_action_group(self) logger.info("Starting") event_manager.subscribe(self.reset) event_manager.subscribe(self.begin_transaction) event_manager.subscribe(self.commit_transaction) event_manager.subscribe(self.rollback_transaction) event_manager.subscribe(self._action_executed) self._register_undo_handlers() self._action_executed()
def __init__(self): self.action_group = build_action_group(self) self.window = None
def __init__(self): self._undo_stack = [] self._redo_stack = [] self._stack_depth = 20 self._current_transaction = None self.action_group = build_action_group(self)
def __init__(self): self.action_group = build_action_group(self) self.console = None self.ui_manager = None # injected
def __init__(self): self._undo_stack = [] self._redo_stack = [] self._stack_depth = 20 self._current_transaction = None self.action_group = build_action_group(self)
def __init__(self): self.action_group = build_action_group(self) self.console = None self.ui_manager = None # injected
def __init__(self, component_registry, main_window): self.component_registry = component_registry self.main_window = main_window self.action_group = build_action_group(self) self.window = None
def __init__(self): self.action_group = build_action_group(self) self.window = None