pyface.font_dialog module

The implementation of a dialog that allows the user to select a font.

pyface.font_dialog.get_font(parent, font)[source]

Convenience function that displays a font dialog.

Parameters
  • parent (toolkit control) – The parent toolkit control for the modal dialog.

  • font (Font or font description) – The initial Font object or string describing the font.

Returns

font – The selected font, or None if the user made no selection.

Return type

Font or None