Gtk.FontChooserWidget¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Box (14), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Orientable (2), Gtk.FontChooser (19)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class |
|
Virtual Methods¶
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r |
The toggle action to switch to the tweak page |
Child Properties¶
- Inherited:
Style Properties¶
- Inherited:
Signals¶
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Gtk.FontChooserWidget(*args, **kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Gtk.FontChooserWidgetwidget lists the available fonts, styles and sizes, allowing the user to select a font. It is used in theGtk.FontChooserDialogwidget to provide a dialog box for selecting fonts.To set the font which is initially selected, use
Gtk.FontChooser.set_font() orGtk.FontChooser.set_font_desc().To get the selected font use
Gtk.FontChooser.get_font() orGtk.FontChooser.get_font_desc().To change the text which is shown in the preview area, use
Gtk.FontChooser.set_preview_text().- CSS nodes
Gtk.FontChooserWidgethas a single CSS node with name fontchooser.New in version 3.2.
- classmethod new()[source]¶
- Returns:
a new
Gtk.FontChooserWidget- Return type:
Creates a new
Gtk.FontChooserWidget.New in version 3.2.
Property Details¶
- Gtk.FontChooserWidget.props.tweak_action¶
- Name:
tweak-action- Type:
- Default Value:
- Flags:
A toggle action that can be used to switch to the tweak page of the font chooser widget, which lets the user tweak the OpenType features and variation axes of the selected font.
The action will be enabled or disabled depending on whether the selected font has any features or axes.