:right-sidebar: True FontChooserDialog =================================================================== .. currentmodule:: gi.repository.Gtk .. deprecated:: 4.10 Use :obj:`~gi.repository.Gtk.FontDialog` instead .. class:: FontChooserDialog(*args, **kwargs) :no-contents-entry: Superclasses: :class:`~gi.repository.Gtk.Dialog`, :class:`~gi.repository.Gtk.Window`, :class:`~gi.repository.Gtk.Widget`, :class:`~gi.repository.GObject.InitiallyUnowned`, :class:`~gi.repository.GObject.Object` Implemented Interfaces: :class:`~gi.repository.Gtk.Accessible`, :class:`~gi.repository.Gtk.Buildable`, :class:`~gi.repository.Gtk.ConstraintTarget`, :class:`~gi.repository.Gtk.FontChooser`, :class:`~gi.repository.Gtk.Native`, :class:`~gi.repository.Gtk.Root`, :class:`~gi.repository.Gtk.ShortcutManager` The ``GtkFontChooserDialog`` widget is a dialog for selecting a font. .. image:: https://docs.gtk.org/gtk4/fontchooser.png ``GtkFontChooserDialog`` implements the :obj:`~gi.repository.Gtk.FontChooser` interface and does not provide much API of its own. To create a ``GtkFontChooserDialog``, use :obj:`~gi.repository.Gtk.FontChooserDialog.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 ------------ .. rst-class:: interim-class .. class:: FontChooserDialog :no-index: .. classmethod:: new(title: str | None = None, parent: ~gi.repository.Gtk.Window | None = None) -> ~gi.repository.Gtk.Widget Creates a new ``GtkFontChooserDialog``. .. deprecated:: 4.10 Use :obj:`~gi.repository.Gtk.FontDialog` instead :param title: Title of the dialog :param parent: Transient parent of the dialog