Gtk.FontChooserWidget¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1), Gtk.FontChooser (19)
- Structs:
class |
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gtk.FontChooserWidget(**kwargs)¶
- Bases:
- Abstract:
No
The
GtkFontChooserWidget
widget lets the user select a font.It is used in the
GtkFontChooserDialog
widget to provide a dialog for selecting fonts.To set the font which is initially selected, use [method`Gtk`.FontChooser.set_font] or [method`Gtk`.FontChooser.set_font_desc].
To get the selected font use [method`Gtk`.FontChooser.get_font] or [method`Gtk`.FontChooser.get_font_desc].
To change the text which is shown in the preview area, use [method`Gtk`.FontChooser.set_preview_text].
- CSS nodes
GtkFontChooserWidget
has a single CSS node with name fontchooser.Deprecated since version 4.10: Direct use of
GtkFontChooserWidget
is deprecated.
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.