from Graphics import * for x in ["left", "center", "right"]: for y in ["top", "center", "bottom"]: canvas = Canvas(100, 100) point = Text((50,50), "+") point.color = Color(0,0,0) point.draw(canvas) t1 = Text((50,50), "X1\nXX2\nXXX3") t1.yJustification = y t1.xJustification = x calico.display("xJustification: '%s', yJustification: '%s'" % (x, y), t1.draw(canvas))