Input Widgets¶
Widgets for inputting values.
Contents
Input Boxes¶
Summary
A text input box. |
|
A float input box. |
|
An input box for 2 floats. |
|
An input box for 3 floats. |
|
An input box for 4 floats. |
|
An integer input box. |
|
An input box for 2 ints. |
|
An input box for 3 ints. |
|
An input box for 4 ints. |
Text Input¶
- class dearpygui_obj.input.InputText(label: Optional[str] = None, value: str = '', **config)[source]¶
Bases:
dearpygui_obj.wrapper.widget.Widget,dearpygui_obj.wrapper.widget.ItemWidgetMx,dearpygui_obj.wrapper.widget.ValueWidgetMx[str]A text input box.
Number Input¶
- class dearpygui_obj.input.NumberInput(label: Optional[str] = None, value: Optional[dearpygui_obj.input._TInput] = None, **config)[source]¶
Bases:
Generic[dearpygui_obj.input._TElem,dearpygui_obj.input._TInput],dearpygui_obj.wrapper.widget.Widget,dearpygui_obj.wrapper.widget.ItemWidgetMx,dearpygui_obj.wrapper.widget.ValueWidgetMx[dearpygui_obj.input._TInput]Base class for number input boxes.
- value: _TInput¶
The inputted value.
- step: _TElem¶
Read or modify the ‘step’ config property.
- step_fast: _TElem¶
Read or modify the ‘step_fast’ config property.
- min_value: Optional[_TElem]¶
Read or modify the ‘min_value’ config property.
- max_value: Optional[_TElem]¶
Read or modify the ‘max_value’ config property.
Float Input¶
- class dearpygui_obj.input.InputFloat(label: Optional[str] = None, value: Optional[dearpygui_obj.input._TInput] = None, **config)[source]¶
Bases:
dearpygui_obj.input.NumberInput[float,float]A float input box.
- value: _TInput¶
The inputted value.
- class dearpygui_obj.input.InputFloat2(label: Optional[str] = None, value: Optional[dearpygui_obj.input._TInput] = None, **config)[source]¶
Bases:
dearpygui_obj.input.NumberInput[float,Tuple[float,float]]An input box for 2 floats.
- value: _TInput¶
The inputted value.
Integer Input¶
- class dearpygui_obj.input.InputInt(label: Optional[str] = None, value: Optional[dearpygui_obj.input._TInput] = None, **config)[source]¶
Bases:
dearpygui_obj.input.NumberInput[int,int]An integer input box.
- value: _TInput¶
The inputted value.
- class dearpygui_obj.input.InputInt2(label: Optional[str] = None, value: Optional[dearpygui_obj.input._TInput] = None, **config)[source]¶
Bases:
dearpygui_obj.input.NumberInput[int,Tuple[int,int]]An input box for 2 ints.
- value: _TInput¶
The inputted value.
Sliders¶
Summary
A slider for a float value. |
|
A slider for 2 float values. |
|
A slider for 3 float values. |
|
A slider for 4 float values. |
|
A slider for an integer value. |
|
A slider for 2 integer values. |
|
A slider for 3 integer values. |
|
A slider for 4 integer values. |
- class dearpygui_obj.input.SliderInput(label: Optional[str] = None, value: Optional[dearpygui_obj.input._TElem] = None, **config)[source]¶
Bases:
Generic[dearpygui_obj.input._TElem,dearpygui_obj.input._TInput],dearpygui_obj.wrapper.widget.Widget,dearpygui_obj.wrapper.widget.ItemWidgetMx,dearpygui_obj.wrapper.widget.ValueWidgetMx[dearpygui_obj.input._TInput]Base class for slider types.
- value: _TInput¶
The inputted value.
- min_value: _TElem¶
Read or modify the ‘min_value’ config property.
- max_value: _TElem¶
Read or modify the ‘max_value’ config property.
Float Sliders¶
- class dearpygui_obj.input.SliderFloat(label: Optional[str] = None, value: Optional[dearpygui_obj.input._TElem] = None, **config)[source]¶
Bases:
dearpygui_obj.input.SliderInput[float,float]A slider for a float value.
If not disabled using the
no_inputproperty, the slider can be CTRL+Clicked to turn it into an input box for manual input of a value.- value: _TInput¶
The inputted value.
- class dearpygui_obj.input.SliderFloat2(label: Optional[str] = None, value: Optional[dearpygui_obj.input._TElem] = None, **config)[source]¶
Bases:
dearpygui_obj.input.SliderInput[float,Tuple[float,float]]A slider for 2 float values.
If not disabled using the
no_inputproperty, the slider can be CTRL+Clicked to turn it into an input box for manual input of a value.- value: _TInput¶
The inputted value.
- class dearpygui_obj.input.SliderFloat3(label: Optional[str] = None, value: Optional[dearpygui_obj.input._TElem] = None, **config)[source]¶
Bases:
dearpygui_obj.input.SliderInput[float,Tuple[float,float,float]]A slider for 3 float values.
If not disabled using the
no_inputproperty, the slider can be CTRL+Clicked to turn it into an input box for manual input of a value.- value: _TInput¶
The inputted value.
- class dearpygui_obj.input.SliderFloat4(label: Optional[str] = None, value: Optional[dearpygui_obj.input._TElem] = None, **config)[source]¶
Bases:
dearpygui_obj.input.SliderInput[float,Tuple[float,float,float,float]]A slider for 4 float values.
If not disabled using the
no_inputproperty, the slider can be CTRL+Clicked to turn it into an input box for manual input of a value.- value: _TInput¶
The inputted value.
Integer Sliders¶
- class dearpygui_obj.input.SliderInt(label: Optional[str] = None, value: Optional[dearpygui_obj.input._TElem] = None, **config)[source]¶
Bases:
dearpygui_obj.input.SliderInput[int,int]A slider for an integer value.
If not disabled using the
no_inputproperty, the slider can be CTRL+Clicked to turn it into an input box for manual input of a value.- value: _TInput¶
The inputted value.
- class dearpygui_obj.input.SliderInt2(label: Optional[str] = None, value: Optional[dearpygui_obj.input._TElem] = None, **config)[source]¶
Bases:
dearpygui_obj.input.SliderInput[int,Tuple[int,int]]A slider for 2 integer values.
If not disabled using the
no_inputproperty, the slider can be CTRL+Clicked to turn it into an input box for manual input of a value.- value: _TInput¶
The inputted value.
- class dearpygui_obj.input.SliderInt3(label: Optional[str] = None, value: Optional[dearpygui_obj.input._TElem] = None, **config)[source]¶
Bases:
dearpygui_obj.input.SliderInput[int,Tuple[int,int,int]]A slider for 3 integer values.
If not disabled using the
no_inputproperty, the slider can be CTRL+Clicked to turn it into an input box for manual input of a value.- value: _TInput¶
The inputted value.
- class dearpygui_obj.input.SliderInt4(label: Optional[str] = None, value: Optional[dearpygui_obj.input._TElem] = None, **config)[source]¶
Bases:
dearpygui_obj.input.SliderInput[int,Tuple[int,int,int,int]]A slider for 4 integer values.
If not disabled using the
no_inputproperty, the slider can be CTRL+Clicked to turn it into an input box for manual input of a value.- value: _TInput¶
The inputted value.
Drag Inputs¶
Summary
A drag input for a float value. |
|
A drag input for 2 float values. |
|
A drag input for 3 float values. |
|
A drag input for 4 float values. |
|
A drag input for an integer value. |
|
A drag input for 2 integer values. |
|
A drag input for 3 integer values. |
|
A drag input for 4 integer values. |
- class dearpygui_obj.input.DragInput(label: Optional[str] = None, value: Optional[dearpygui_obj.input._TElem] = None, **config)[source]¶
Bases:
Generic[dearpygui_obj.input._TElem,dearpygui_obj.input._TInput],dearpygui_obj.wrapper.widget.Widget,dearpygui_obj.wrapper.widget.ItemWidgetMx,dearpygui_obj.wrapper.widget.ValueWidgetMx[dearpygui_obj.input._TInput]Base class for drag input boxes.
- value: _TInput¶
The inputted value.
- min_value: _TElem¶
Read or modify the ‘min_value’ config property.
- max_value: _TElem¶
Read or modify the ‘max_value’ config property.
Float Drag Input¶
- class dearpygui_obj.input.DragFloat(label: Optional[str] = None, value: Optional[dearpygui_obj.input._TElem] = None, **config)[source]¶
Bases:
dearpygui_obj.input.DragInput[float,float]A drag input for a float value.
If not disabled using the
no_inputproperty, the drag input can be CTRL+Clicked to turn it into an input box for manual input of a value.- value: _TInput¶
The inputted value.
- class dearpygui_obj.input.DragFloat2(label: Optional[str] = None, value: Optional[dearpygui_obj.input._TElem] = None, **config)[source]¶
Bases:
dearpygui_obj.input.DragInput[float,Tuple[float,float]]A drag input for 2 float values.
If not disabled using the
no_inputproperty, the drag input can be CTRL+Clicked to turn it into an input box for manual input of a value.- value: _TInput¶
The inputted value.
- class dearpygui_obj.input.DragFloat3(label: Optional[str] = None, value: Optional[dearpygui_obj.input._TElem] = None, **config)[source]¶
Bases:
dearpygui_obj.input.DragInput[float,Tuple[float,float,float]]A drag input for 3 float values.
If not disabled using the
no_inputproperty, the drag input can be CTRL+Clicked to turn it into an input box for manual input of a value.- value: _TInput¶
The inputted value.
- class dearpygui_obj.input.DragFloat4(label: Optional[str] = None, value: Optional[dearpygui_obj.input._TElem] = None, **config)[source]¶
Bases:
dearpygui_obj.input.DragInput[float,Tuple[float,float,float,float]]A drag input for 4 float values.
If not disabled using the
no_inputproperty, the drag input can be CTRL+Clicked to turn it into an input box for manual input of a value.- value: _TInput¶
The inputted value.
Integer Drag Input¶
- class dearpygui_obj.input.DragInt(label: Optional[str] = None, value: Optional[dearpygui_obj.input._TElem] = None, **config)[source]¶
Bases:
dearpygui_obj.input.DragInput[int,int]A drag input for an integer value.
If not disabled using the
no_inputproperty, the drag input can be CTRL+Clicked to turn it into an input box for manual input of a value.- value: _TInput¶
The inputted value.
- class dearpygui_obj.input.DragInt2(label: Optional[str] = None, value: Optional[dearpygui_obj.input._TElem] = None, **config)[source]¶
Bases:
dearpygui_obj.input.DragInput[int,Tuple[int,int]]A drag input for 2 integer values.
If not disabled using the
no_inputproperty, the drag input can be CTRL+Clicked to turn it into an input box for manual input of a value.- value: _TInput¶
The inputted value.
- class dearpygui_obj.input.DragInt3(label: Optional[str] = None, value: Optional[dearpygui_obj.input._TElem] = None, **config)[source]¶
Bases:
dearpygui_obj.input.DragInput[int,Tuple[int,int,int]]A drag input for 3 integer values.
If not disabled using the
no_inputproperty, the drag input can be CTRL+Clicked to turn it into an input box for manual input of a value.- value: _TInput¶
The inputted value.
- class dearpygui_obj.input.DragInt4(label: Optional[str] = None, value: Optional[dearpygui_obj.input._TElem] = None, **config)[source]¶
Bases:
dearpygui_obj.input.DragInput[int,Tuple[int,int,int,int]]A drag input for 4 integer values.
If not disabled using the
no_inputproperty, the drag input can be CTRL+Clicked to turn it into an input box for manual input of a value.- value: _TInput¶
The inputted value.
Color Input¶
Summary
A color picking widget. |
|
A color editing widget. |
|
A button that displays and enables copying of color data. |
|
A color editing widget. |
|
A color picking widget. |
- class dearpygui_obj.input.ColorButton(color: dearpygui_obj.data.ColorRGBA = ColorRGBA(r=1, g=0, b=1, a=255), **config)[source]¶
Bases:
dearpygui_obj.wrapper.widget.Widget,dearpygui_obj.wrapper.widget.ItemWidgetMxA button that displays and enables copying of color data.
Clicking and draging the color square will copy the color to be applied on any other color widget.
While it has color “value”, this is not a
ValueWidgetMx!- color: ColorRGBA¶
The color to copy on drag-and-drop.
- class dearpygui_obj.input.ColorPicker(label: Optional[str] = None, value: dearpygui_obj.data.ColorRGBA = ColorRGBA(r=1, g=0, b=1, a=255), **config)[source]¶
Bases:
dearpygui_obj.wrapper.widget.Widget,dearpygui_obj.wrapper.widget.ItemWidgetMx,dearpygui_obj.wrapper.widget.ValueWidgetMx[dearpygui_obj.data.ColorRGBA]A color picking widget.
Clicking and draging the color square will copy the color to be applied on any other color widget. Right-click allows the style of the color picker to be changed.
- value: ColorRGBA¶
The picked color.
- color_format: ColorFormatMode¶
Read or modify the ‘color_format’ config property.
- class dearpygui_obj.input.ColorEdit(label: Optional[str] = None, value: dearpygui_obj.data.ColorRGBA = ColorRGBA(r=1, g=0, b=1, a=255), **config)[source]¶
Bases:
dearpygui_obj.wrapper.widget.Widget,dearpygui_obj.wrapper.widget.ItemWidgetMx,dearpygui_obj.wrapper.widget.ValueWidgetMx[dearpygui_obj.data.ColorRGBA]A color editing widget.
Clicking and draging the color square will copy the color to be applied on any other color widget.
- value: ColorRGBA¶
The inputted color.
- color_format: ColorFormatMode¶
Read or modify the ‘color_format’ config property.
Date and Time Input¶
Summary
A date picker widget. .. warning::. |
|
The picking mode shown in a |
|
A time picker widget. .. warning::. |
|
The time format used by |
- class dearpygui_obj.input.DatePicker(**config)[source]¶
Bases:
dearpygui_obj.wrapper.widget.Widget,dearpygui_obj.wrapper.widget.ItemWidgetMx,dearpygui_obj.wrapper.widget.ValueWidgetMx[datetime.date]A date picker widget. .. warning:
Setting the :attr:`value` property currently does not work. This is an issue with DPG 0.6. Attempting to do so will raise a :class:`.NotImplementedError`.
- mode: DatePickerMode¶
The current picking mode.
- class dearpygui_obj.input.DatePickerMode(value)[source]¶
Bases:
enum.EnumThe picking mode shown in a
DatePicker.- Day = 0¶
- Month = 1¶
- Year = 2¶
- class dearpygui_obj.input.TimePicker(**config)[source]¶
Bases:
dearpygui_obj.wrapper.widget.Widget,dearpygui_obj.wrapper.widget.ValueWidgetMx[datetime.time]A time picker widget. .. warning:
Setting the :attr:`value` property currently does not work. This is an issue with DPG 0.6. Attempting to do so will raise a :class:`.NotImplementedError`.
- format: TimePickerFormat¶
- mode¶
The current picking mode.