# FontChooserWidget (Python)

Marta Maria Casetti
mmcasetti@gmail.com 2012
A widget to choose a font

# FontChooserWidget

A FontChooserWidget with a callback function.

# Code used to generate this example

# Useful methods for a FontChooserWidget

For an explanation of signals and callback functions, see this page.

To set the font which is initially selected, use `set_font(font)` (where `font` is the font name) or `set_font_desc(font)` (where `font` is the PangoFontDescription).

To get the selected font use `get_font()` or `get_font_desc()`.

To change the text which is shown in the preview area, use `set_preview_text()`.

# API References

In this sample we used the following:

GtkFontChooserWidget