pymel.core.windows.fontDialog

fontDialog(*args, **kwargs)

On Windows systems only, the command can be invoked with no flags; in this case it displays a font picking window, and returns the name of the font that the user picked. If the user picked no font, then an empty string is returned.

Flags:
Long name (short name) Argument Types Properties
FontList (fl) bool ../../../_images/create.gif
 

This option is available on all platforms. No dialog is displayed; a list of all available font names is returned. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.fontDialog

Example:

import pymel.core as pm

font = pm.fontDialog()
print font;

fonts = pm.fontDialog(FontList=True)
print fonts;

Previous topic

pymel.core.windows.flowLayout

Next topic

pymel.core.windows.formLayout

Core

Core Modules

Other Modules

This Page