flowchart.Flowchart

class pyqtgraph.flowchart.Flowchart(terminals=None, name=None, filePath=None)
__init__(terminals=None, name=None, filePath=None)
chartGraphicsItem()

Return the graphicsItem which displays the internals of this flowchart. (graphicsItem() still returns the external-view item)

connectTerminals(term1, term2)

Connect two terminals together within this flowchart.

internalTerminal(term)

If the terminal belongs to the external Node, return the corresponding internal terminal

nodeOutputChanged(startNode)

Triggered when a node’s output values have changed. (NOT called during process()) Propagates new data forward through network.

output()

Return a dict of the values on the Flowchart’s output terminals.

process(**args)

Process data through the flowchart, returning the output.

Keyword arguments must be the names of input terminals. The return value is a dict with one key per output terminal.

processOrder()

Return the order of operations required to process this chart. The order returned should look like [(‘p’, node1), (‘p’, node2), (‘d’, terminal1), ...] where each tuple specifies either (p)rocess this node or (d)elete the result from this terminal

setInput(**args)

Set the input values of the flowchart. This will automatically propagate the new values throughout the flowchart, (possibly) causing the output to change.

Previous topic

Visual Programming with Flowcharts

Next topic

flowchart.Node

This Page