GtkSource.StyleSchemePreview¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1), Gtk.Actionable (5)
- Structs:
class |
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The style scheme to preview |
||
r/w |
If the preview should have the selected state |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Fields¶
- Inherited:
Class Details¶
- class GtkSource.StyleSchemePreview(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A preview widget for [class`StyleScheme`].
This widget provides a convenient [class`Gtk`.Widget] to preview a [class`StyleScheme`].
The [property`StyleSchemePreview`:py:data::selected<GtkSource.StyleSchemePreview.props.selected>] property can be used to manage the selection state of a single preview widget.
New in version 5.4.
- classmethod new(scheme)¶
- Parameters:
scheme (
GtkSource.StyleScheme
) – aGtkSource.StyleScheme
- Returns:
- Return type:
Creates a new
GtkSource.StyleSchemePreview
to preview the style scheme provided in scheme.New in version 5.4.
- get_scheme()¶
- Returns:
- Return type:
Gets the
GtkSource.StyleScheme
previewed by the widget.New in version 5.4.
Signal Details¶
- GtkSource.StyleSchemePreview.signals.activate(style_scheme_preview)¶
- Signal Name:
activate
- Flags:
- Parameters:
style_scheme_preview (
GtkSource.StyleSchemePreview
) – The object which received the signal
Property Details¶
- GtkSource.StyleSchemePreview.props.scheme¶
- Name:
scheme
- Type:
- Default Value:
- Flags:
The style scheme to preview