Basic Widgets¶
Summary
A basic element that displays some text. |
|
Display text with a label. |
|
Adds a horizontal line. |
|
A progress bar. |
|
A simple button. |
|
Specifies direction for arrow buttons. |
|
Simple checkbox widget. |
|
Text that can be selected, functionally similar to a checkbox. |
|
A set of radio buttons. |
|
A scrollable box containing a selection of items. |
|
A combo box (drop down). |
|
Specifies the height of a combo box. |
|
A simple plot to visualize a sequence of float values. |
Basic Content¶
- class dearpygui_obj.basic.Text(value: str = '', **config)[source]¶
Bases:
dearpygui_obj.wrapper.widget.Widget,dearpygui_obj.wrapper.widget.ItemWidgetMx,dearpygui_obj.wrapper.widget.ValueWidgetMx[str]A basic element that displays some text.
- color: ColorRGBA¶
Read or modify the ‘color’ config property.
- class dearpygui_obj.basic.LabelText(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]Display text with a label.
Useful for output values when used with a
data_source. The text is linked to the data source, while the label remains unchanged.- color: ColorRGBA¶
Read or modify the ‘color’ config property.
- class dearpygui_obj.basic.Separator(**config)[source]¶
Bases:
dearpygui_obj.wrapper.widget.Widget,dearpygui_obj.wrapper.widget.ItemWidgetMxAdds a horizontal line.
- class dearpygui_obj.basic.ProgressBar(value: float = 0.0, **config)[source]¶
Bases:
dearpygui_obj.wrapper.widget.Widget,dearpygui_obj.wrapper.widget.ItemWidgetMx,dearpygui_obj.wrapper.widget.ValueWidgetMx[float]A progress bar.
Button-Like¶
- class dearpygui_obj.basic.Button(label: Optional[str] = None, **config)[source]¶
Bases:
dearpygui_obj.wrapper.widget.Widget,dearpygui_obj.wrapper.widget.ItemWidgetMxA simple button.
- arrow: Optional[ButtonArrow]¶
Configure the button as an arrow button.
If the button is an arrow button, the value will be the arrow direction. Otherwise the value will be
None.Assigning to this property will enable/disable the arrow and/or set the direction.
- class dearpygui_obj.basic.ButtonArrow(value)[source]¶
Bases:
enum.EnumSpecifies direction for arrow buttons.
- Left = 0¶
- Right = 1¶
- Up = 2¶
- Down = 3¶
- class dearpygui_obj.basic.Checkbox(label: Optional[str] = None, value: bool = False, **config)[source]¶
Bases:
dearpygui_obj.wrapper.widget.Widget,dearpygui_obj.wrapper.widget.ItemWidgetMx,dearpygui_obj.wrapper.widget.ValueWidgetMx[bool]Simple checkbox widget.
- class dearpygui_obj.basic.Selectable(label: Optional[str] = None, value: bool = False, **config)[source]¶
Bases:
dearpygui_obj.wrapper.widget.Widget,dearpygui_obj.wrapper.widget.ItemWidgetMx,dearpygui_obj.wrapper.widget.ValueWidgetMx[bool]Text that can be selected, functionally similar to a checkbox.
Selection List¶
- class dearpygui_obj.basic.RadioButtons(items: Iterable[str], value: int = 0, **config)[source]¶
Bases:
dearpygui_obj.wrapper.widget.Widget,dearpygui_obj.wrapper.widget.ItemWidgetMx,dearpygui_obj.wrapper.widget.ValueWidgetMx[int],MutableSequence[str]A set of radio buttons.
This widget can be used as a mutable sequence of labels. Changing the sequence will change the radio buttons in the group and their labels.
- class dearpygui_obj.basic.ListBox(label: str = None, items: Iterable[str] = (), value: int = 0, **config)[source]¶
Bases:
dearpygui_obj.wrapper.widget.Widget,dearpygui_obj.wrapper.widget.ItemWidgetMx,dearpygui_obj.wrapper.widget.ValueWidgetMx[int],MutableSequence[str]A scrollable box containing a selection of items.
- class dearpygui_obj.basic.Combo(label: str = None, items: Iterable[str] = (), value: str = '', **config)[source]¶
Bases:
dearpygui_obj.wrapper.widget.Widget,dearpygui_obj.wrapper.widget.ItemWidgetMx,dearpygui_obj.wrapper.widget.ValueWidgetMx[str],MutableSequence[str]A combo box (drop down).
Unlike
RadioButtons, thevalueof a Combo is one of the item strings, not the index.Unless specified, none of the items are initially selected and
valueis an empty string.- height_mode: ComboHeightMode¶
Read or modify the ‘height’ config property.
- class dearpygui_obj.basic.ComboHeightMode(value)[source]¶
Bases:
enum.EnumSpecifies the height of a combo box.
- Small = 'height_small'¶
Max ~4 items visible.
- Regular = 'height_regular'¶
Max ~8 items visible.
- Large = 'height_large'¶
Max ~20 items visible.
- Largest = 'height_largest'¶
As many items visible as possible.
Simple Plots¶
- class dearpygui_obj.basic.SimplePlot(label: Optional[str] = None, **config)[source]¶
Bases:
dearpygui_obj.wrapper.widget.Widget,dearpygui_obj.wrapper.widget.ItemWidgetMx,dearpygui_obj.wrapper.widget.ValueWidgetMx[Sequence[float]]A simple plot to visualize a sequence of float values.