test_dialogs

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

Returns entered string. Availability: FontLab, Macintosh

robofab.test.test_dialogs.AskYesNoCancel(message, title='noLongerUsed', default=None, informativeText='')

AskYesNoCancel Dialog

message the string title* a title of the window

(may not be supported everywhere)
default* index number of which button should be default
(i.e. respond to return)

informativeText* A string with secundary information

  • may not be supported everywhere
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, title=None, directory=None, fileName=None, allowsMultipleSelection=False, fileTypes=None)

Legacy robofab dialog compatible wrapper. This will select UFO on OSX 10.7, FL5.1

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

Legacy robofab dialog compatible wrapper.

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.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