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



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)


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

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

Default Value:None

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.