vapor.widget module#

class vapor.widget.CanvasStreamWidget(**kwargs: Any)#

Bases: AnyWidget

SetImage(img: <module 'PIL.Image' from '/usr/share/miniconda/envs/VaporDocumentationWebsite/lib/python3.9/site-packages/PIL/Image.py'>)#
imageData#

A trait for unicode strings.

mouseButton#

An int trait.

mouseDown#

A boolean (True, False) trait.

mousePos#

An instance of a Python tuple.

resolution#

An instance of a Python tuple.

test()#
value#

An int trait.

valueChanged()#
class vapor.widget.VaporVisualizerWidget(**kwargs: Any)#

Bases: CanvasStreamWidget

Creates an interactive visualizer widget for a Vapor session. Controls are the same as the Vapor GUI application (They are shown as a tooltip on the visualizer for reference).

Render(fast=False)#

Update the visualizer with a current rendering of the session. :fast: renders with lower fidelity but faster. Useful for interactive rendering such as to observe a changing value with a slider.

class TrackballButton#

Bases: object

Left = 1#
Middle = 2#
Right = 3#
mouseDownChanged()#
mousePosChanged()#