circuitpython/tests/extmod/mkapi3.py

7 lines
253 B
Python

import mkapitest as mactypes
import mkapitest as textedit
teJustCenter = 1
textRect = mactypes.Rect(135, 10, 270, 487)
text = bytearray(b"\n".join([b"Hello, World", b"This is another line"]))
textedit.TETextBox(text, len(text), textRect, teJustCenter)