Gtk.FontChooserWidget

g GObject.GInterface GObject.GInterface Gtk.Accessible Gtk.Accessible GObject.GInterface->Gtk.Accessible Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.ConstraintTarget Gtk.ConstraintTarget GObject.GInterface->Gtk.ConstraintTarget Gtk.FontChooser Gtk.FontChooser GObject.GInterface->Gtk.FontChooser GObject.InitiallyUnowned GObject.InitiallyUnowned Gtk.Widget Gtk.Widget GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Accessible->Gtk.Widget Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget->Gtk.Widget Gtk.FontChooserWidget Gtk.FontChooserWidget Gtk.FontChooser->Gtk.FontChooserWidget Gtk.Widget->Gtk.FontChooserWidget

Subclasses:

None

Methods

Inherited:

Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1), Gtk.FontChooser (19)

Structs:

Gtk.WidgetClass (18), GObject.ObjectClass (5)

class

new ()

Virtual Methods

Inherited:

Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9), Gtk.FontChooser (7)

Properties

Inherited:

Gtk.Widget (34), Gtk.Accessible (1), Gtk.FontChooser (7)

Name

Type

Flags

Short Description

tweak-action

Gio.Action

r

Signals

Inherited:

Gtk.Widget (13), GObject.Object (1), Gtk.FontChooser (1)

Fields

Inherited:

Gtk.Widget (13), GObject.Object (1), Gtk.FontChooser (1)

Class Details

class Gtk.FontChooserWidget(**kwargs)
Bases:

Gtk.Widget, Gtk.FontChooser

Abstract:

No

The GtkFontChooserWidget widget lets the user select a font.

It is used in the GtkFontChooserDialog widget to provide a dialog for selecting fonts.

To set the font which is initially selected, use [method`Gtk`.FontChooser.set_font] or [method`Gtk`.FontChooser.set_font_desc].

To get the selected font use [method`Gtk`.FontChooser.get_font] or [method`Gtk`.FontChooser.get_font_desc].

To change the text which is shown in the preview area, use [method`Gtk`.FontChooser.set_preview_text].

CSS nodes

GtkFontChooserWidget has a single CSS node with name fontchooser.

Deprecated since version 4.10: Direct use of GtkFontChooserWidget is deprecated.

classmethod new()[source]
Returns:

a new GtkFontChooserWidget

Return type:

Gtk.Widget

Creates a new GtkFontChooserWidget.

Deprecated since version 4.10: Direct use of GtkFontChooserWidget is deprecated.

Property Details

Gtk.FontChooserWidget.props.tweak_action
Name:

tweak-action

Type:

Gio.Action

Default Value:

None

Flags:

READABLE

A toggle action that can be used to switch to the tweak page of the font chooser widget, which lets the user tweak the OpenType features and variation axes of the selected font.

The action will be enabled or disabled depending on whether the selected font has any features or axes.