NodeBox

Create visual output with Python programming code
Home Download Reference Tutorial Library Gallery About

pixie.keywords()

Syntax

keywords(list=(), all=False)

Description

Sets a list of keywords pixie should mark as important. The paragraph() command uses this list to determine which words should be drawn within a border. When all is True, it draws any occurence of a keyword in a border, but by default only the first one.

Example

pixie = ximport("pixie")
txt  = "Pixie was originally a part of the Aunt Hillary code package,"
txt += "a handwriting that looks different each time, contains mistakes,"
txt += "has wobbly baselines and variable color pressure."
pixie.keywords(["pixie", "aunt hillary"])
pixie.paragraph(txt, 100, 100, 200, pt=15)