Update 'CARDPUTER CircuitPython/full_display_test.py'
This commit is contained in:
@@ -24,5 +24,12 @@ while True:
|
||||
elif key == "CTRLD":
|
||||
text = "Press CTRL+D to clear text\n\n"
|
||||
else:
|
||||
## WRAPPING
|
||||
## calculate wrapping when entering a character
|
||||
lines = text.split("\n")
|
||||
current_line = lines[len(lines)-1]
|
||||
if len(current_line) > 35:
|
||||
text=text+"\n" # <- start a new line here
|
||||
##############################################
|
||||
text = text+key
|
||||
text_area.text = text
|
||||
Reference in New Issue
Block a user