Containers¶
Contents
Summary
A collapsing container with a label. |
|
Similar to |
|
A container that allows switching between different tabs. |
|
A container whose contents will be displayed when selected in a |
|
A button that can be added to a |
|
Specifies the ordering behavior of a tab items. |
|
A menu containing |
|
An item for a |
|
A container that appears when a |
|
Specifies the trigger for a |
Tree Nodes¶
- class dearpygui_obj.containers.TreeNode(label: Optional[str] = None, **config)[source]¶
Bases:
dearpygui_obj.wrapper.widget.Widget,dearpygui_obj.wrapper.widget.ItemWidgetMx,dearpygui_obj.wrapper.widget.ContainerWidgetMx[TreeNode],dearpygui_obj.wrapper.widget.ValueWidgetMx[bool]A collapsing container with a label.
- class dearpygui_obj.containers.TreeNodeHeader(label: Optional[str] = None, **config)[source]¶
Bases:
dearpygui_obj.containers.TreeNode,dearpygui_obj.wrapper.widget.ContainerWidgetMx[TreeNodeHeader]Similar to
TreeNode, but the label is visually emphasized.
Tabs¶
- class dearpygui_obj.containers.TabBar(**config)[source]¶
Bases:
dearpygui_obj.wrapper.widget.Widget,dearpygui_obj.wrapper.widget.ItemWidgetMx,dearpygui_obj.wrapper.widget.ContainerWidgetMx[TabBar]A container that allows switching between different tabs.
- class dearpygui_obj.containers.TabItem(label: Optional[str] = None, **config)[source]¶
Bases:
dearpygui_obj.wrapper.widget.Widget,dearpygui_obj.wrapper.widget.ItemWidgetMx,dearpygui_obj.wrapper.widget.ContainerWidgetMx[TabItem]A container whose contents will be displayed when selected in a
TabBar.Note
This widget must be placed inside a
TabBarto be visible.- order_mode: TabOrderMode¶
Read or modify the ‘order_mode’ config property.
- class dearpygui_obj.containers.TabButton(label: Optional[str] = None, **config)[source]¶
Bases:
dearpygui_obj.wrapper.widget.Widget,dearpygui_obj.wrapper.widget.ItemWidgetMxA button that can be added to a
TabBar.Note
This widget must be placed inside a
TabBarto be visible.- order_mode: TabOrderMode¶
Read or modify the ‘order_mode’ config property.
- class dearpygui_obj.containers.TabOrderMode(value)[source]¶
Bases:
enum.EnumSpecifies the ordering behavior of a tab items.
- Reorderable = None¶
Default
- Fixed = 'no_reorder'¶
Disable reordering this tab or having another tab cross over this tab
- Leading = 'leading'¶
Enforce the tab position to the left of the tab bar (after the tab list popup button)
- Trailing = 'trailing'¶
Enforce the tab position to the right of the tab bar (before the scrolling buttons)
Popups¶
- class dearpygui_obj.containers.Popup(parent: dearpygui_obj.wrapper.widget.Widget, **config)[source]¶
Bases:
dearpygui_obj.wrapper.widget.Widget,dearpygui_obj.wrapper.widget.ContainerWidgetMx[Popup]A container that appears when a
Widgetis interacted with.- trigger: PopupInteraction¶
The interaction that will trigger the popup.
- property parent: dearpygui_obj.wrapper.widget.Widget¶
The
ItemWidgetMxthat the popup is attached to. Cannot be changed.