A widget also has input and output Signals. However, contrary to Blocks, widgets have no Ports because they cannot link to one another within the same panel like regular blocks in a model.
Parameters:
widget_id (str) – the ID of the widget.
panel_id (str) – the ID of the panel that owns this widget.
Panel
bgColor
unset
Anchor
opalone._internal.widgets.Widget.delete
opalone._internal.widgets.Widget.delete
delete()
Panel
bgColor
unset
Delete the current resource, which is done by suppressing its ID.
Panel
bgColor
unset
Anchor
opalone._internal.widgets.Widget.to_json
opalone._internal.widgets.Widget.to_json
to_json(fields, values)
Panel
bgColor
unset
Convert this resource to a serialized JSON representation.
Parameters:
fields (tuple[str] | list[str]) – Fields to include.
values (tuple[object] | list[object]) – The value of each field
Returns:
The serialized JSON representation.
Return type:
str
Panel
bgColor
unset
Anchor
opalone._internal.widgets.Widget.angle
opalone._internal.widgets.Widget.angle
property angle: float
Panel
bgColor
unset
The angle of the block.
The value is between 0 and 360 degrees.
Panel
bgColor
unset
Anchor
opalone._internal.widgets.Widget.comment_state
opalone._internal.widgets.Widget.comment_state
property comment_state: str
Panel
bgColor
unset
The comment state of the block.
The default value is NONE.
If COMMENT_OUT, the block is not considered by the simulation.
If COMMENT_THROUGH, the block is considered as a link between its input ports and output ports.