TimePicker
Time Picker
Introduction
TimePicker
is a widget in Supervisely that allows to select time input.
Function signature
Parameters
Parameters | Type | Description |
---|---|---|
|
|
|
|
| Start time |
|
| Time step |
|
| End time |
|
|
|
|
| Size of input |
|
| Whether |
|
| Whether |
|
| Whether the input is editable |
|
| Whether to show clear button |
|
| ID of the widget |
start
Determine TimePicker
start time.
type: str
default value: "09:00"
step
Determine TimePicker
time step.
type: str
default value: "00:15"
end
Determine TimePicker
end time.
type: str
default value: "22:30"
placeholder
Determine TimePicker
placeholder.
type: str
default value: None
size
Determine TimePicker
size of input.
type: Literal["large", "small", "mini", None]
default value: None
readonly
Determine whether TimePicker
is read only.
type: bool
default value: False
editable
Determine whether the input is editable.
type: bool
default value: True
clearable
Determine whether to show a clear button.
type: bool
default value: True
widget_id
ID of the widget.
type: str
default value: None
Methods and attributes
Attributes and Methods | Description |
---|---|
| Set |
| Return |
| Return |
| Set |
| Set |
| Set |
| Decorator function to handle |
Mini App Example
You can find this example in our Github repository:
supervisely-ecosystem/ui-widgets-demos/input/008_time_picker/src/main.py
Import libraries
Init API client
First, we load environment variables with credentials and init API for communicating with Supervisely Instance:
Initialize TimePicker
and Text
widgets
TimePicker
and Text
widgetsCreate app layout
Prepare a layout for app using Card
widget with the content
parameter.
Create app using layout
Create an app object with layout parameter.
Add functions to control widgets from python code
Last updated