Module Expr Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr ListLoad NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str If BoolOpAnd AttributeLoad NameLoad attr CompareGtE AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Return SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assert CompareLtELtE Num AttributeLoad NameLoad attr BinOpSub Call NameLoad AttributeLoad NameLoad attr Num Assert CompareGtE Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Return CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Return CompareEq AttributeLoad NameLoad attr BinOpSub Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore BinOpAdd AttributeLoad NameLoad attr Num orelse If CompareEq NameLoad Num body Raise Call NameLoad If CompareGtE NameLoad NameLoad body Raise Call NameLoad Assert CompareLtELtE Num NameLoad Call NameLoad AttributeLoad NameLoad attr Assert CompareLtELtE Num NameLoad BinOpSub NameLoad Num For NameStore Call NameLoad NameLoad NameLoad body Expr Yield SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice BinOpAdd AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr Assert CompareEq Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareLtE AttributeLoad NameLoad attr Num body Return NameLoad Assign NameStore AttributeLoad NameLoad attr AugAssignSub AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareGtE AttributeLoad NameLoad attr BinOpSub Call NameLoad AttributeLoad NameLoad attr Num body Return NameLoad AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr TupleLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr BinOpAdd NameLoad TupleLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore TupleLoad orelse Assign NameStore Call NameLoad ListComp Call AttributeLoad NameLoad attr comprehension NameStore NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Return Call AttributeLoad NameLoad attr NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore TupleLoad orelse Assign NameStore Call NameLoad ListComp Call AttributeLoad NameLoad attr comprehension NameStore NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Return Call AttributeLoad NameLoad attr NameLoad orelse Return NameLoad decorator_list decorator_list
N/A N/A History class for undo stack. History N/A object N/A N/A Implement a history of actions with an undo stack. __init__ N/A N/A self base_item N/A None N/A N/A N/A N/A self clear base_item N/A clear N/A N/A self base_item N/A None N/A N/A Clear the history. N/A N/A self _history N/A base_item N/A N/A self _index 0 N/A current_item N/A N/A self N/A N/A N/A Return the current element. N/A N/A N/A self _history N/A N/A self _index 0 N/A N/A N/A N/A self _check_index N/A N/A N/A self _history N/A N/A self _index N/A property current_position N/A N/A self N/A N/A N/A Current position in the history. N/A N/A self _index N/A property _check_index N/A N/A self N/A N/A N/A Check that the index is without the bounds of _history. N/A N/A 0 N/A self _index N/A N/A len N/A self _history 1 N/A N/A N/A len N/A self _history 1 N/A is_first N/A N/A self N/A N/A N/A N/A N/A self _index 1 N/A is_last N/A N/A self N/A N/A N/A N/A N/A self _index N/A N/A len N/A self _history 1 N/A iter N/A N/A self start end N/A 0 None N/A N/A Iterate through successive history items.

        Parameters
        ----------
        end : int
            Index of the last item to loop through + 1.

        start : int
            Initial index for the loop (0 by default).

         N/A N/A end None N/A N/A end N/A N/A self _index 1 N/A N/A N/A end 0 N/A N/A N/A StopIteration N/A N/A start end N/A N/A N/A StopIteration N/A N/A 0 end N/A len N/A self _history N/A N/A 0 start N/A end 1 N/A i N/A range start end N/A N/A N/A N/A N/A self _history N/A i N/A __iter__ N/A N/A self N/A N/A N/A N/A N/A self iter N/A __len__ N/A N/A self N/A N/A N/A N/A len N/A self _history N/A add N/A N/A self item N/A N/A N/A Add an item in the history. N/A N/A N/A self _check_index N/A N/A self _history N/A N/A self _history N/A N/A N/A self _index 1 N/A N/A N/A N/A self _history append item N/A N/A self _index 1 N/A N/A N/A self _check_index N/A N/A N/A id N/A self current_item N/A id item N/A back N/A N/A self N/A N/A N/A Go back in history if possible.

        Return the undone item.

         N/A N/A N/A self _index 0 N/A N/A None N/A undone N/A self current_item N/A N/A self _index 1 N/A N/A N/A self _check_index N/A undone N/A undo N/A N/A self N/A N/A N/A N/A N/A self back N/A forward N/A N/A self N/A N/A N/A Go forward in history if possible.

        Return the current item after going forward.

         N/A N/A N/A self _index N/A N/A len N/A self _history 1 N/A N/A None N/A N/A self _index 1 N/A N/A N/A self _check_index N/A N/A self current_item N/A redo N/A N/A self N/A N/A N/A N/A N/A self forward N/A N/A GlobalHistory N/A History N/A N/A Merge several controllers with different undo stacks. __init__ N/A N/A self process_ups N/A None N/A N/A N/A N/A N/A super GlobalHistory self __init__ N/A N/A N/A self process_ups process_ups N/A action N/A N/A self N/A controllers N/A N/A Register one or several controllers for this action. N/A N/A N/A self add N/A tuple controllers N/A add_to_current_action N/A N/A self controller N/A N/A N/A Add a controller to the current action. N/A item N/A self current_item N/A N/A N/A self _history N/A N/A self _index N/A item N/A controller N/A undo N/A N/A self N/A N/A N/A Undo the last action.

        This will call `undo()` on all controllers involved in this action.

         N/A controllers N/A N/A self back N/A N/A controllers None N/A N/A ups N/A N/A N/A ups N/A tuple N/A N/A N/A controller undo N/A controller controllers N/A N/A N/A self process_ups None N/A N/A N/A N/A self process_ups ups N/A N/A ups N/A redo N/A N/A self N/A N/A N/A Redo the last action.

        This will call `redo()` on all controllers involved in this action.

         N/A controllers N/A N/A self forward N/A N/A controllers None N/A N/A ups N/A N/A N/A ups N/A tuple N/A N/A N/A controller redo N/A controller controllers N/A N/A N/A self process_ups None N/A N/A N/A N/A self process_ups ups N/A N/A ups N/A N/A