messages

A collection of standard messages for use in hTools3 dialogs.

showMessage(messageText, mode=0)

Display a given message to the user.

Parameters

mode (int) – The display mode of the message. 0: print to console, 1: show banner notification

from hTools3.modules.messages import showMessage
showMessage('hello world', mode=1)
noXSelected(x)

Generic message to be used when a required object is not selected.

noXOpen(x)

Generic message to be used when a required object is not open.

noPointSelected = 'No point selected.\nPlease select one or more points.\n'

Message to be used when no point is selected.

onlyOnePoint = 'Only one point selected.\nPlease select at least two points.\n'

Message to be used when only one point is selected.

atLeastTwoPoints = 'Please select at least two points.\n'

Message to be used when at least two points must be selected.

noContourSelected = 'No contour selected.\nPlease select one or more contours.\n'

Message to be used when no contour is selected.

noGlyphOpen = 'No glyph open.\nPlease open at least one glyph.\n'

Message to be used when no glyph is open.

noGlyphSelected = 'No glyph selected.\nPlease select one or more glyphs.\n'

Message to be used when no glyph is selected.

noLayerSelected = 'No layer selected.\nPlease select one or more layers.\n'

Message to be used when no layer is selected.

noFontOpen = 'No font open.\nPlease open at least one font.\n'

Message to be used when no font is open.

onlyOneFont = 'Only one font open.\nPlease open at least one more font.\n'

Message to be used when at least two fonts must be open.

noFontInFolder = 'Folder does not contain a font.\nPlease add some fonts to the folder, or choose another folder.\n'

Message to be used when there are no font files in a given folder.