3.11.4. sciexp2.common.progress.Stack

Methods

pop()

Remove the last progress indicator from the stack.

push(klass, *args, **kwargs)

Add a new progress indicator to the stack and make it current.

Attributes

CURRENT

The currently active progress indicator.

class Stack

Bases: object

Stack of currently active progress indicators.

Provides only static attributes and methods, in order to provide a program-wide stateful stack of progress indicators.

CURRENT = <sciexp2.common.progress.Null object>

The currently active progress indicator.

static push(klass, *args, **kwargs)

Add a new progress indicator to the stack and make it current.

Parameters:
klasscallable

Class object or function to construct the new progress indicator.

args, kwargs

Arguments to klass.

static pop()

Remove the last progress indicator from the stack.