a
    ¦ˆc¢  ã                   @   s0   d Z ddlmZ ddlmZ edƒZdd„ ZdS )zG The implementation of a dialog that allows the user to select a font.
é   )ÚOK)Útoolkit_objectzfont_dialog:FontDialogc                 C   s*   t | |d�}| ¡ }|tkr"|jS dS dS )a‚   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 : Font or None
        The selected font, or None if the user made no selection.
    )ÚparentÚfontN)Ú
FontDialogÚopenr   r   )r   r   ÚdialogÚresult© r
   úU/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/pyface/font_dialog.pyÚget_font   s
    r   N)Ú__doc__Zconstantr   Ztoolkitr   r   r   r
   r
   r
   r   Ú<module>   s   