Skip to content
More languages

Translate automatically from English. Screenshots and search terms remain English.

Google Translate loads after you choose a language.

English original

skin.py classes and methods

These are implementation classes, mostly used by the skin engine itself. Their constructors and internal methods are listed for source navigation. For a new plugin screen, inherit from Screens.Screen.Screen, not from a skin parsing context.

Open an entry’s method list to jump to exact source lines. Inherited methods are not duplicated here. Complex list-template and native-stack tutorials are reserved for later units.

Source snapshot: skin.py @ f4135659cb. The catalogue lists source capabilities; support also depends on the receiver build and native widget class.

AttributeParser

Dispatches collected XML attribute names to native GUI methods; it is a shared dispatcher, not a guarantee that every widget supports every attribute.

Methods defined in this class (130)

Read the implementation at line 1020 ↗

additionalWidget

Internal holder for a decorative native widget and its skin attributes.

Methods defined in this class (1)

Read the implementation at line 1791 ↗

ComponentTemplates

Stores and retrieves component XML templates and tracks changes.

Methods defined in this class (6)

Read the implementation at line 1796 ↗

SizeTuple

Tuple adapter used for already-parsed coordinates while retaining string-like methods expected by skin code.

Methods defined in this class (3)

Read the implementation at line 1843 ↗

SkinContext

Layout origin, available size, scale and font context; edge-docked children can consume available space.

Methods defined in this class (3)

Read the implementation at line 1854 ↗

SkinContextStack

Layout context that places children without consuming the available parent rectangle.

Methods defined in this class (1)

Read the implementation at line 1923 ↗

SkinContextVertical

Context for vertically arranged content and its remaining space.

Methods defined in this class (2)

Read the implementation at line 1957 ↗

SkinContextHorizontal

Context for horizontally arranged content and its remaining space.

Methods defined in this class (2)

Read the implementation at line 2011 ↗

TemplateParser

Internal parser for list/content XML templates. Listed for discovery; full list-template tutorials belong to a later chapter.

Methods defined in this class (9)

Read the implementation at line 2065 ↗

SkinError

Skin-processing exception type whose message can include the configured skin context.

Methods defined in this class (2)

Read the implementation at line 2292 ↗