dialogs

  • FontLab 5.04 10.6 dialogKit fl internal * theoretically that should work under windows as well, untested

  • FontLab 5.1 10.6 dialogKit fl internal

  • FontLab 5.1 10.7 raw cocao fl internal Glyphs any vanilla vanilla RoboFont any vanilla vanilla

    This module does a fair amount of sniffing in order to guess which dialogs to load. Linux and Windows environments are underrepresented at the moment. Following the prototypes in dialogs_default.py it is possible (with knowledge of the platform) to extend support.

    The platformApplicationSupport table contains very specific versions with which certain apps need to work. Moving forward, it is likely that these versions will change and need to be updated.

    # this calls the new dialogs infrastructure: from robofab.interface.all.dialogs import Message

    # this calls the old original legacy dialogs infrastructure: from robofab.interface.all.dialogs_legacy import Message

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

Returns entered string. Availability: FontLab, Macintosh

robofab.interface.all.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.interface.all.dialogs.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.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.interface.all.dialogs.Message(message='', title='noLongerUsed', informativeText='')

Legacy robofab dialog compatible wrapper.

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

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

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

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

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

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

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

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