moviemaker2.branch

class moviemaker2.branch.Branch(fns, choice)[source]

On being called, the Branch evaluates a selector, and chooses one Function based on the value.

__init__(fns, choice)[source]

choice gives an index into fns. Especially, fns might be a dictionary, mapping return values onto Functions.

__call__(ps)[source]

Evaluates .choice(ps) and calls the appropriate function.

Previous topic

moviemaker2.extension

Next topic

moviemaker2.rasterisers

This Page