dialogs_legacy

Dialogs. Cross-platform and cross-application compatible. Some of them anyway. (Not all dialogs work on PCs outside of FontLab. Some dialogs are for FontLab only. Sorry.)

Mac and FontLab implementation written by the RoboFab development team. PC implementation by Eigi Eigendorf and is (C)2002 Eigi Eigendorf.

robofab.interface.all.dialogs_legacy.SelectFont(message='Select a font:', title='RoboFab')

Returns font instance if there is one, otherwise it returns None. Availability: FontLab

robofab.interface.all.dialogs_legacy.SelectGlyph(font, message='Select a glyph:', title='RoboFab')

Returns glyph instance if there is one, otherwise it returns None. Availability: FontLab

robofab.interface.all.dialogs_legacy.FindGlyph(font, message='Search for a glyph:', title='RoboFab')

Returns glyph instance if there is one, otherwise it returns None. Availability: FontLab

robofab.interface.all.dialogs_legacy.OneList(list, message='Select an item:', title='RoboFab')

Returns selected item, otherwise it returns None. Availability: FontLab, Macintosh

robofab.interface.all.dialogs_legacy.SearchList(list, message='Select an item:', title='RoboFab')

Returns selected item, otherwise it returns None. Availability: FontLab

robofab.interface.all.dialogs_legacy.TwoFields(title_1='One:', value_1='0', title_2='Two:', value_2='0', title='RoboFab')

Returns (value 1, value 2). Availability: FontLab

robofab.interface.all.dialogs_legacy.TwoChecks(title_1='One', title_2='Two', value1=1, value2=1, title='RoboFab')

Returns check value: 1 if check box 1 is checked 2 if check box 2 is checked 3 if both are checked 0 if neither are checked None if cancel is clicked.

Availability: FontLab, Macintosh

robofab.interface.all.dialogs_legacy.Message(message, title='RoboFab')

A simple message dialog. Availability: FontLab, Macintosh

robofab.interface.all.dialogs_legacy.AskString(message, value='', title='RoboFab')

Returns entered string. Availability: FontLab, Macintosh

robofab.interface.all.dialogs_legacy.AskYesNoCancel(message, title='RoboFab', default=0)

Returns 1 for ‘Yes’, 0 for ‘No’ and -1 for ‘Cancel’. Availability: FontLab, Macintosh (“default” argument only available on Macintosh)

robofab.interface.all.dialogs_legacy.GetFile(message=None)

Select file dialog. Returns path if one is selected. Otherwise it returns None. Availability: FontLab, Macintosh, PC

robofab.interface.all.dialogs_legacy.GetFolder(message=None)

Select folder dialog. Returns path if one is selected. Otherwise it returns None. Availability: FontLab, Macintosh, PC

robofab.interface.all.dialogs_legacy.GetDirectory(message=None)

Select folder dialog. Returns path if one is selected. Otherwise it returns None. Availability: FontLab, Macintosh, PC

robofab.interface.all.dialogs_legacy.PutFile(message=None, fileName=None)

Save file dialog. Returns path if one is entered. Otherwise it returns None. Availability: FontLab, Macintosh, PC