CircleProgress
Last updated
Last updated
Circle Progress widget is a wrapper for Progress widget to display it in a circular form. This widget display progress only in percentage.
Supervisely Progress widget. You can read more about it here.
type: Progress
ID of the widget.
type: str
default value: None
You can find this example in our Github repository:
supervisely-ecosystem/ui-widgets-demos/status-elements/009_circle_progress/src/main.py
Init API for communicating with Supervisely Instance. First, we load environment variables with credentials:
Progress
, Circle Progress
and Button
Prepare a layout for app using Card
widget with the content
parameter and place variables circle_progress
and button
that we've just created to the container
variable, which uses Container
widget.
Create an app object with layout parameter.
Our app layout is ready. Progress bar will appear after pressing the Start
button.
Use the decorator as shown below to handle button click. Progress
will be updating itself (pbar.update(1)
) every half second by 1 point as specified in sleep
function until it reaches total
.
Parameters | Type | Description |
---|---|---|
Attributes and Methods | Description |
---|---|
progress
Progress
Supervisely Progress widget
widget_id
str
ID of the widget
set_status()
Set one of the available statuses: none
, exception
, success