Container#

class Container#

The base class of canvases and panels, which other objects can be added to.

Base class: Object
Derived classes: Canvas, Panel

Inherited Members

add_panel([visible=True])#

Add a panel to this object.

Parameters:

visible (bool) – Whether the new panel is visible.

Return type:

Panel

add_text(content[, visible=True])#

Add text to this object.

Parameters:
  • content (str) – The text.

  • visible (bool) – Whether the text is visible.

Return type:

Text

add_input_field([visible=True])#

Add an input field to this object.

Parameters:

visible (bool) – Whether the input field is visible.

Return type:

InputField

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:

Button

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:

Toggle

add_toggle_group()#

Add a toggle group to this object, to make a set of toggles into radio buttons.

Return type:

ToggleGroup

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:

Slider

add_dropdown([visible=True])#

Add a dropdown to this object.

Parameters:

visible (bool) – Whether the dropdown is visible.

Return type:

Dropdown

add_image([visible=True])#

Add an image to this object.

Parameters:

visible (bool) – Whether the image is visible.

Return type:

Image

add_scroll_view([visible=True])#

Add a scroll view to this object.

Parameters:

visible (bool) – Whether the scroll view is visible.

Return type:

ScrollView