Gtk.FontSelectionDialog¶
- Subclasses:
- None 
Methods¶
- Inherited:
- Gtk.Dialog (14), Gtk.Window (119), Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10) 
- Structs:
- Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5) 
| class | 
 | 
| 
 | |
| 
 | 
Virtual Methods¶
Properties¶
- Inherited:
- Gtk.Dialog (1), Gtk.Window (33), Gtk.Container (3), Gtk.Widget (39) 
Style Properties¶
- Inherited:
Signals¶
Fields¶
| Name | Type | Access | Description | 
|---|---|---|---|
| parent_instance | r | 
Class Details¶
- class Gtk.FontSelectionDialog(*args, **kwargs)¶
- Bases:
- Abstract:
- No 
- Structure:
 - classmethod new(title)[source]¶
- Parameters:
- title ( - str) – the title of the dialog window
- Returns:
- a new - Gtk.FontSelectionDialog
- Return type:
 - Creates a new - Gtk.FontSelectionDialog.- Deprecated since version 3.2: Use - Gtk.FontChooserDialog
 - get_cancel_button()[source]¶
- Returns:
- the - Gtk.Widgetused in the dialog for the “Cancel” button.
- Return type:
 - Gets the “Cancel” button. - New in version 2.14. - Deprecated since version 3.2: Use - Gtk.FontChooserDialog
 - get_font_name()[source]¶
- Returns:
- A string with the name of the current font, or - Noneif no font is selected. You must free this string with- GLib.free().
- Return type:
 - Gets the currently-selected font name. - Note that this can be a different string than what you set with - Gtk.FontSelectionDialog.set_font_name(), as the font selection widget may normalize font names and thus return a string with a different structure. For example, “Helvetica Italic Bold 12” could be normalized to “Helvetica Bold Italic 12”. Use- Pango.FontDescription.equal() if you want to compare two font descriptions.- Deprecated since version 3.2: Use - Gtk.FontChooserDialog
 - get_font_selection()[source]¶
- Returns:
- the embedded - Gtk.FontSelection
- Return type:
 - Retrieves the - Gtk.FontSelectionwidget embedded in the dialog.- New in version 2.22. - Deprecated since version 3.2: Use - Gtk.FontChooserDialog
 - get_ok_button()[source]¶
- Returns:
- the - Gtk.Widgetused in the dialog for the “OK” button.
- Return type:
 - Gets the “OK” button. - New in version 2.14. - Deprecated since version 3.2: Use - Gtk.FontChooserDialog
 - get_preview_text()[source]¶
- Returns:
- the text displayed in the preview area. This string is owned by the widget and should not be modified or freed 
- Return type:
 - Gets the text displayed in the preview area. - Deprecated since version 3.2: Use - Gtk.FontChooserDialog
 - set_font_name(fontname)[source]¶
- Parameters:
- fontname ( - str) – a font name like “Helvetica 12” or “Times Bold 18”
- Returns:
- Trueif the font selected in self is now the fontname specified,- Falseotherwise.
- Return type:
 - Sets the currently selected font. - Deprecated since version 3.2: Use - Gtk.FontChooserDialog
 - set_preview_text(text)[source]¶
- Parameters:
- text ( - str) – the text to display in the preview area
 - Sets the text displayed in the preview area. - Deprecated since version 3.2: Use - Gtk.FontChooserDialog