GUI Style#

arcade.gui.UIStyleBase#

class arcade.gui.UIStyleBase[source]#

Base class for styles to ensure a general interface and implement additional magic.

Support dict like access syntax.

A styled widget should own a dataclass, which subclasses this class

arcade.gui.UIStyledWidget#

class arcade.gui.UIStyledWidget(*, style: Mapping[str, UIStyleBase], **kwargs)[source]#
abstract get_current_state() str[source]#

Return the current state of the widget. These should be contained in the style dict.

Well known states: - normal - hover - press - disabled

get_current_style() UIStyleBase[source]#

Return style based on any state of the widget