Gtk.FontChooserWidget

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 Gtk.FontChooser Gtk.FontChooser GObject.GInterface->Gtk.FontChooser Gtk.Orientable Gtk.Orientable GObject.GInterface->Gtk.Orientable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Box Gtk.Box Gtk.FontChooserWidget Gtk.FontChooserWidget Gtk.Box->Gtk.FontChooserWidget Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Box Gtk.FontChooser->Gtk.FontChooserWidget Gtk.Orientable->Gtk.Box Gtk.Widget->Gtk.Container

Subclasses:

None

Methods

Inherited:

Gtk.Box (14), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Orientable (2), Gtk.FontChooser (19)

Structs:

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

class

new ()

Virtual Methods

Inherited:

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

Properties

Inherited:

Gtk.Box (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1), Gtk.FontChooser (7)

Name

Type

Flags

Short Description

tweak-action

Gio.Action

r

The toggle action to switch to the tweak page

Child Properties

Inherited:

Gtk.Box (5)

Style Properties

Inherited:

Gtk.Widget (17)

Signals

Inherited:

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

Fields

Inherited:

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

Name

Type

Access

Description

parent_instance

Gtk.Box

r

Class Details

class Gtk.FontChooserWidget(*args, **kwargs)
Bases:

Gtk.Box, Gtk.FontChooser

Abstract:

No

Structure:

Gtk.FontChooserWidgetClass

The Gtk.FontChooserWidget widget lists the available fonts, styles and sizes, allowing the user to select a font. It is used in the Gtk.FontChooserDialog widget to provide a dialog box for selecting fonts.

To set the font which is initially selected, use Gtk.FontChooser.set_font() or Gtk.FontChooser.set_font_desc().

To get the selected font use Gtk.FontChooser.get_font() or Gtk.FontChooser.get_font_desc().

To change the text which is shown in the preview area, use Gtk.FontChooser.set_preview_text().

CSS nodes

Gtk.FontChooserWidget has a single CSS node with name fontchooser.

New in version 3.2.

classmethod new()[source]
Returns:

a new Gtk.FontChooserWidget

Return type:

Gtk.Widget

Creates a new Gtk.FontChooserWidget.

New in version 3.2.

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.