FontChooserWidget#

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

class FontChooserWidget(**properties: Any)#

Superclasses: Widget, InitiallyUnowned, Object

Implemented Interfaces: Accessible, Buildable, ConstraintTarget, FontChooser

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 set_font or set_font_desc.

To get the selected font use get_font or get_font_desc.

To change the text which is shown in the preview area, use set_preview_text.

CSS nodes#

GtkFontChooserWidget has a single CSS node with name fontchooser.

Constructors#

class FontChooserWidget
classmethod new() Widget#

Creates a new GtkFontChooserWidget.

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

Properties#

class FontChooserWidget
props.tweak_action: Action#

The type of the None singleton.