Link Search Menu Expand Document

arena-py API v0.9.6

arena.objects.arenaui_button_panel

class ArenauiButtonPanel(arena.objects.arena_object.Object):

ArenauiButtonPanel object class to manage its properties in the ARENA: ARENAUI element which displays a vertical or horizontal panel of buttons.

Parameters
  • list[dict] buttons: Buttons Defaults to '[{'name': 'Option 1'}, {'name': 'Option 2'}]' (optional)
  • str font: Font to use for button text. Allows [Roboto, Roboto-Mono] Defaults to 'Roboto' (optional)
  • str materialSides: Which sides display the rendered UI material Allows [both, front] Defaults to 'both' (optional)
  • str theme: Color Theme Allows [light, dark] Defaults to 'light' (optional)
  • str title: Title to display above buttons (optional). (optional)
  • bool vertical: Vertical button layout (optional)
ArenauiButtonPanel(**kwargs)
object_type = 'arenaui-button-panel'
def json_preprocess(self, **kwargs):
class ButtonPanel(ArenauiButtonPanel):

Alternate name for ArenauiButtonPanel.

class Button:

Buttons of a ButtonPanel in the ARENA UI.

Parameters
  • str name: Button Name
  • str img: Image URl for image buttons (optional)
  • float size: Size of image button (optional)
  • float height: Height of image button, overrides size (optional)
  • float: Width of image button, overrides size (optional)
  • float borderRadius: Border radius of image button (optional)
Button(name='Button', **kwargs)
name