Skip to content

API Class SessionDataCommand

Bo Chen edited this page Apr 23, 2026 · 1 revision

API Class: SessionDataCommand

Session Data Command class.

Source

Inheritance

  • Bases: QUndoCommand

Purpose

Session Data Command class.

Instance Attributes

Attribute First assigned in Line Explanation
_first_redo __init__ 101 Stores first redo.
after_state __init__ 100 State bundle for after state.
before_state __init__ 99 State bundle for before state.
main_window __init__ 98 Stores main window.

Methods

General

Method Line Explanation
__init__(main_window, text, before_state, after_state) 96 Initializes the instance.
undo() 103 Implements undo.
redo() 106 Implements redo.

Clone this wiki locally