Comment 2 for bug 1597639

Revision history for this message
RaiMan (raimund-hocke) wrote : Re: [request] inputText() should have more options --- fixed 1.1.1 2016-07-03

This is now possible: (not yet in the docs)

# selects a monospaced font
# default is False meaning a SansSerif font
Settings.InputFontMono = True

# default fontsize now is 14 (also minimum size)
Settings.InputFontSize = 20

print inputText("please tell a story")
# default 20 characters per line and 9 lines

# the textarea now has auto-linewrap at word boundary and a scrollbar if needed

print inputText("please tell a story", 50, 20)
# 50 characters per line and 20 lines