nanome.api.shapes.shape module

class Shape(shape_type)[source]

Bases: object

Base class of a shape. Used in self.create_shape(shape_type) in plugins.
Parameters:shape_type (ShapeType) – Enumerator representing the shape_type to create
anchors
Anchors of the shape
Parameters:value (list of Anchor) – Anchors of the shape
color
Color of the shape
Parameters:value (Color) – Color of the shape
destroy(done_callback=None)[source]
Remove the shape from the Nanome App and destroy it.
classmethod destroy_multiple(shapes, done_callback=None)[source]
Remove multiple shapes from the Nanome App and destroy them.
index
Index of the shape
shape_type
Type of shape. Currently Sphere, Line, and Label are supported.
Return type:ShapeType
upload(done_callback=None)[source]
Upload the shape to the Nanome App
classmethod upload_multiple(shapes, done_callback=None)[source]
Upload multiple shapes to the Nanome App