BindedInputNumber
Last updated
Last updated
BindedInputNumber
widget in Supervisely is a user interface element that allows users to input two numerical values and customize their behavior using the proportional, min, and max properties. With the BindedInputNumber widget, users can fine-tune specific parameters within supervisely apps that require two numerical inputs, such as defining a rectangular region of interest by specifying the x
and y
coordinates and the width
and height
. The BindedInputNumber
widget provides a convenient and flexible way to input and manage these values, with customizable behavior to ensure accurate and precise inputs.
Parameters | Type | Description |
---|---|---|
|
| Width value |
|
| Weight value |
|
| Minimum allowed value |
|
| Maximum allowed value |
|
| Synchronize changes in width and height parameters |
|
| ID of the widget |
Determine width value.
type: int
default value: 256
Determine height value.
type: int
default value: 256
Minimum allowed value.
type: int
default value: 1
Maximum allowed value.
type: int
default value: 10000
Synchronize changes in width and height parameters.
type: bool
default value: false
ID of the widget.
type: str
default value: None
Attributes and Methods | Description |
---|---|
| Set widgets |
| Get input |
| Set |
| Set |
| Set |
| Disable widget. |
| Enable widget. |
You can find this example in our Github repository:
ui-widgets-demos/input/004_binded_input_number/src/main.py
BindedInputNumber
widgetPrepare a layout for app using Card
widget with the content
parameter and place widget that we've just created in the Container
widget.
Create an app object with layout parameter.