Style

class Style(**properties: Any)

Superclasses: Object

Represents a style.

The GtkSourceStyle structure is used to describe text attributes which are set when given style is used.

Methods

class Style
apply(tag: TextTag) None

This function modifies the TextTag properties that are related to the Style properties. Other TextTag properties are left untouched.

If style is non-None, applies style to tag.

If style is None, the related *-set properties of TextTag are set to False.

Parameters:

tag – a TextTag to apply styles to.

Properties

class Style
props.background: str
props.background_set: bool
props.bold: bool
props.bold_set: bool
props.foreground: str
props.foreground_set: bool
props.italic: bool
props.italic_set: bool
props.line_background: str
props.line_background_set: bool
props.pango_underline: Underline
props.scale: str
props.scale_set: bool
props.strikethrough: bool
props.strikethrough_set: bool
props.underline_color: str
props.underline_color_set: bool
props.underline_set: bool
props.weight: Weight
props.weight_set: bool