GimpUi.FontChooser
- 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)
|
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.