Gtk.FontChooserWidget¶
| Subclasses: | None | 
|---|
Methods¶
| class | new() | 
Virtual Methods¶
| Inherited: | Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10), Gtk.FontChooser (7) | 
|---|
Properties¶
| Inherited: | Gtk.Box (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1), Gtk.FontChooser (7) | 
|---|
| Name | Type | Flags | Short Description | 
|---|---|---|---|
| tweak-action | Gio.Action | r | The toggle action to switch to the tweak page | 
Child Properties¶
| Inherited: | Gtk.Box (5) | 
|---|
Style Properties¶
| Inherited: | Gtk.Widget (17) | 
|---|
Signals¶
| Inherited: | Gtk.Container (4), Gtk.Widget (69), GObject.Object (1), Gtk.FontChooser (1) | 
|---|
Fields¶
| Inherited: | Gtk.Container (4), Gtk.Widget (69), GObject.Object (1), Gtk.FontChooser (1) | 
|---|
| Name | Type | Access | Description | 
|---|---|---|---|
| parent_instance | Gtk.Box | r | 
Class Details¶
- 
class Gtk.FontChooserWidget(*args, **kwargs)¶
- Bases: - Gtk.Box,- Gtk.FontChooser- Abstract: - No - Structure: - Gtk.FontChooserWidgetClass- The - Gtk.FontChooserWidgetwidget lists the available fonts, styles and sizes, allowing the user to select a font. It is used in the- Gtk.FontChooserDialogwidget to provide a dialog box for selecting fonts.- To set the font which is initially selected, use - Gtk.FontChooser.set_font() or- Gtk.FontChooser.set_font_desc().- To get the selected font use - Gtk.FontChooser.get_font() or- Gtk.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: - Gtk.Widget- Creates a new - Gtk.FontChooserWidget.- New in version 3.2. 
 
Property Details¶
- 
Gtk.FontChooserWidget.props.tweak_action¶
- Name: - tweak-action- Type: - Gio.Action- Default Value: - None- Flags: - READABLE- 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.