GUI Style#


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


class arcade.gui.UIStyledWidget(*, style: Mapping[str, StyleRef], **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() StyleRef[source]#

Return style based on any state of the widget