StyleSchemePreview

Added in version 5.4.

class StyleSchemePreview(**properties: Any)

Superclasses: Widget, InitiallyUnowned, Object

Implemented Interfaces: Accessible, Actionable, Buildable, ConstraintTarget

A preview widget for StyleScheme.

This widget provides a convenient Widget to preview a StyleScheme.

The selected property can be used to manage the selection state of a single preview widget.

Constructors

class StyleSchemePreview
classmethod new(scheme: StyleScheme) Widget

Creates a new StyleSchemePreview to preview the style scheme provided in scheme.

Added in version 5.4.

Parameters:

scheme – a StyleScheme

Methods

class StyleSchemePreview
get_scheme() StyleScheme

Gets the StyleScheme previewed by the widget.

Added in version 5.4.

get_selected() bool
set_selected(selected: bool) None
Parameters:

selected

Properties

class StyleSchemePreview
props.scheme: StyleScheme
props.selected: bool

Signals

class StyleSchemePreview.signals
activate() None