FontChooserDialog

Deprecated since version 4.10: Use FontDialog instead

class FontChooserDialog(*args, **kwargs)

Superclasses: Dialog, Window, Widget, InitiallyUnowned, Object

Implemented Interfaces: Accessible, Buildable, ConstraintTarget, FontChooser, Native, Root, ShortcutManager

The GtkFontChooserDialog widget is a dialog for selecting a font.

https://docs.gtk.org/gtk4/fontchooser.png

GtkFontChooserDialog implements the FontChooser interface and does not provide much API of its own.

To create a GtkFontChooserDialog, use new.

GtkFontChooserDialog as GtkBuildable

The GtkFontChooserDialog implementation of the GtkBuildable interface exposes the buttons with the names “select_button” and “cancel_button”.

CSS nodes

GtkFontChooserDialog has a single CSS node with the name window and style class .fontchooser.

Constructors

class FontChooserDialog
classmethod new(title: str | None = None, parent: Window | None = None) Widget

Creates a new GtkFontChooserDialog.

Deprecated since version 4.10: Use FontDialog instead

Parameters:
  • title – Title of the dialog

  • parent – Transient parent of the dialog