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.
width
int
Width value
height
int
Weight value
min
int
Minimum allowed value
max
int
Maximum allowed value
proportional
bool
Synchronize changes in width and height parameters
widget_id
str
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
value(width: int, height: int)
Set widgets width
and height
filed.
get_value()
Get input width
and height
values.
proportional(value: bool)
Set proportional
value.
min(value: int)
Set min
value.
max(value: int)
Set max
value.
disable()
Disable widget.
enable()
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.