Container#
- class Container#
The base class of canvases and panels, which other objects can be added to.
Inherited Members
From
Object:rect_transform,layout_element,visible,remove()
- add_panel([visible=True])#
Add a panel to this object.
- Parameters:
visible (bool) – Whether the new panel is visible.
- Return type:
- add_text(content[, visible=True])#
Add text to this object.
- Parameters:
content (str) – The text.
visible (bool) – Whether the text is visible.
- Return type:
- add_input_field([visible=True])#
Add an input field to this object.
- Parameters:
visible (bool) – Whether the input field is visible.
- Return type:
- add_button(content[, visible=True])#
Add a button to this object.
- Parameters:
content (str) – The label for the button.
visible (bool) – Whether the button is visible.
- Return type:
- add_toggle(content[, visible=True])#
Add a toggle to this object.
- Parameters:
content (str) – The label for the toggle.
visible (bool) – Whether the toggle is visible.
- Return type:
- add_toggle_group()#
Add a toggle group to this object, to make a set of toggles into radio buttons.
- Return type:
Note
The group is not drawn and does not take up any space. The toggles that belong to it can be added anywhere.
- add_slider([vertical=False][, visible=True])#
Add a slider to this object.
- Parameters:
vertical (bool) – Whether the slider runs from bottom to top, rather than from left to right.
visible (bool) – Whether the slider is visible.
- Return type:
- add_dropdown([visible=True])#
Add a dropdown to this object.
- Parameters:
visible (bool) – Whether the dropdown is visible.
- Return type:
- add_image([visible=True])#
Add an image to this object.
- Parameters:
visible (bool) – Whether the image is visible.
- Return type:
- add_scroll_view([visible=True])#
Add a scroll view to this object.
- Parameters:
visible (bool) – Whether the scroll view is visible.
- Return type: