test_dialogs

robofab.test.test_dialogs.AskString(message, value='', title='RoboFab')

Returns entered string. Availability: FontLab, Macintosh

robofab.test.test_dialogs.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.test.test_dialogs.FindGlyph(font, message='Search for a glyph:', title='RoboFab')

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

robofab.test.test_dialogs.GetFile(message=None)

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

robofab.test.test_dialogs.GetFolder(message=None)

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

robofab.test.test_dialogs.Message(message, title='RoboFab')

A simple message dialog. Availability: FontLab, Macintosh

robofab.test.test_dialogs.OneList(list, message='Select an item:', title='RoboFab')

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

robofab.test.test_dialogs.PutFile(message=None, fileName=None)

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

robofab.test.test_dialogs.SearchList(list, message='Select an item:', title='RoboFab')

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

robofab.test.test_dialogs.SelectFont(message='Select a font:', title='RoboFab')

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

robofab.test.test_dialogs.SelectGlyph(font, message='Select a glyph:', title='RoboFab')

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

robofab.test.test_dialogs.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.test.test_dialogs.TwoFields(title_1='One:', value_1='0', title_2='Two:', value_2='0', title='RoboFab')

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