Gtk.FontChooserDialog

g GObject.GInterface GObject.GInterface Gtk.Accessible Gtk.Accessible GObject.GInterface->Gtk.Accessible Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.ConstraintTarget Gtk.ConstraintTarget GObject.GInterface->Gtk.ConstraintTarget Gtk.FontChooser Gtk.FontChooser GObject.GInterface->Gtk.FontChooser Gtk.Native Gtk.Native GObject.GInterface->Gtk.Native Gtk.Root Gtk.Root GObject.GInterface->Gtk.Root Gtk.ShortcutManager Gtk.ShortcutManager GObject.GInterface->Gtk.ShortcutManager GObject.InitiallyUnowned GObject.InitiallyUnowned Gtk.Widget Gtk.Widget GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Accessible->Gtk.Widget Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget->Gtk.Widget Gtk.Dialog Gtk.Dialog Gtk.FontChooserDialog Gtk.FontChooserDialog Gtk.Dialog->Gtk.FontChooserDialog Gtk.FontChooser->Gtk.FontChooserDialog Gtk.Window Gtk.Window Gtk.Native->Gtk.Window Gtk.Root->Gtk.Window Gtk.ShortcutManager->Gtk.Window Gtk.Widget->Gtk.Window Gtk.Window->Gtk.Dialog

Example

../_images/FontChooserDialog.png
Subclasses:

None

Methods

Inherited:

Gtk.Dialog (11), Gtk.Window (62), Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1), Gtk.Native (6), Gtk.Root (3), Gtk.FontChooser (19)

Structs:

Gtk.WidgetClass (18), GObject.ObjectClass (5)

class

new (title, parent)

Virtual Methods

Inherited:

Gtk.Dialog (2), Gtk.Window (5), Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9), Gtk.ShortcutManager (2), Gtk.FontChooser (7)

Properties

Inherited:

Gtk.Dialog (1), Gtk.Window (25), Gtk.Widget (34), Gtk.Accessible (1), Gtk.FontChooser (7)

Signals

Inherited:

Gtk.Dialog (2), Gtk.Window (5), Gtk.Widget (13), GObject.Object (1), Gtk.FontChooser (1)

Fields

Inherited:

Gtk.Dialog (2), Gtk.Window (5), Gtk.Widget (13), GObject.Object (1), Gtk.FontChooser (1)

Class Details

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

Gtk.Dialog, Gtk.FontChooser

Abstract:

No

The GtkFontChooserDialog widget is a dialog for selecting a font.

An example Gtk.FontChooserDialog

GtkFontChooserDialog implements the [iface`Gtk`.FontChooser] interface and does not provide much API of its own.

To create a GtkFontChooserDialog, use [ctor`Gtk`.FontChooserDialog.new].

Gtk.FontChooserDialog as Gtk.Buildable

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.

Deprecated since version 4.10: Use [class`Gtk`.FontDialog] instead

classmethod new(title, parent)[source]
Parameters:
  • title (str or None) – Title of the dialog

  • parent (Gtk.Window or None) – Transient parent of the dialog

Returns:

a new GtkFontChooserDialog

Return type:

Gtk.Widget

Creates a new GtkFontChooserDialog.

Deprecated since version 4.10: Use [class`Gtk`.FontDialog] instead