GimpUi.FontChooser

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.Orientable Gtk.Orientable GObject.GInterface->Gtk.Orientable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned GimpUi.FontChooser GimpUi.FontChooser GimpUi.ResourceChooser GimpUi.ResourceChooser GimpUi.ResourceChooser->GimpUi.FontChooser Gtk.Box Gtk.Box Gtk.Box->GimpUi.ResourceChooser Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Box Gtk.Orientable->Gtk.Box Gtk.Widget->Gtk.Container

Subclasses:

None

Methods

Inherited:

GimpUi.ResourceChooser (3), Gtk.Box (14), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Orientable (2)

Structs:

Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)

class

new (title, label, font)

Virtual Methods

Inherited:

GimpUi.ResourceChooser (2), Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)

Properties

Inherited:

GimpUi.ResourceChooser (3), Gtk.Box (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)

Child Properties

Inherited:

Gtk.Box (5)

Style Properties

Inherited:

Gtk.Widget (17)

Signals

Inherited:

GimpUi.ResourceChooser (1), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Fields

Inherited:

GimpUi.ResourceChooser (1), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Class Details

class GimpUi.FontChooser(*args, **kwargs)
Bases:

GimpUi.ResourceChooser

Abstract:

No

Structure:

GimpUi.FontChooserClass

A button which pops up a font selection dialog.

classmethod new(title, label, font)
Parameters:
  • title (str or None) – Title of the dialog to use or None to use the default title.

  • label (str or None) – Button label or None for no label.

  • font (Gimp.Font or None) – Initial font.

Returns:

A Gtk.Widget that you can use in your UI.

Return type:

Gtk.Widget

Creates a new Gtk.Widget that lets a user choose a font. You can put this widget in a plug-in dialog.

When font is None, initial choice is from context.

New in version 2.4.