Tepl.StyleSchemeChooserSimple

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Bin Gtk.Bin Tepl.StyleSchemeChooserSimple Tepl.StyleSchemeChooserSimple Gtk.Bin->Tepl.StyleSchemeChooserSimple Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin Gtk.Widget->Gtk.Container

Subclasses:

None

Methods

Inherited:

Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)

Structs:

Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)

class

new (for_dark_theme_variant)

get_style_scheme_id ()

set_style_scheme_id (style_scheme_id)

Virtual Methods

Inherited:

Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)

Properties

Inherited:

Gtk.Container (3), Gtk.Widget (39)

Name

Type

Flags

Short Description

style-scheme-id

str

r/w

Style Properties

Inherited:

Gtk.Widget (17)

Signals

Inherited:

Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Fields

Inherited:

Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Name

Type

Access

Description

parent

Gtk.Bin

r

Class Details

class Tepl.StyleSchemeChooserSimple(**kwargs)
Bases:

Gtk.Bin

Abstract:

No

Structure:

Tepl.StyleSchemeChooserSimpleClass

classmethod new(for_dark_theme_variant)
Parameters:

for_dark_theme_variant (bool) – whether it’s for choosing a style scheme for a dark GTK theme variant.

Returns:

a new Tepl.StyleSchemeChooserSimple widget.

Return type:

Tepl.StyleSchemeChooserSimple

Creates a new Tepl.StyleSchemeChooserSimple widget.

The content of the widget will be different depending on for_dark_theme_variant. That configuration cannot change once the widget is created. If your application supports both the light and dark GTK theme variants, consider using Tepl.StyleSchemeChooserFull instead.

New in version 6.11.

get_style_scheme_id()
Returns:

the value of the Tepl.StyleSchemeChooserSimple :style-scheme-id property.

Return type:

str or None

New in version 6.11.

set_style_scheme_id(style_scheme_id)
Parameters:

style_scheme_id (str) – the new value.

Sets the Tepl.StyleSchemeChooserSimple :style-scheme-id property.

New in version 6.11.

Property Details

Tepl.StyleSchemeChooserSimple.props.style_scheme_id
Name:

style-scheme-id

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The selected GtkSource.StyleScheme ID.

Its value changes when the user selects another row in the list.

When set, if the ID doesn’t exist, no row is selected.

New in version 6.11.