Skip to content
Snippets Groups Projects
Commit 90946807db08 authored by jfp's avatar jfp
Browse files

test2.py: use display put_line method, not print

parent ed3cd19a15f7
Branches
No related tags found
No related merge requests found
......@@ -170,7 +170,6 @@
time.sleep(0.1)
time.sleep(1)
# ------------------------------#
# draw line #
# ------------------------------#
......@@ -193,7 +192,6 @@
d.draw_line(15 + i, 39 + i, 15 + i, 39 + i)
time.sleep(5)
# ------------------------------#
# insert chars #
# ------------------------------#
......@@ -213,7 +211,6 @@
time.sleep(3)
d.insert_chars("petites ", 3, 6)
time.sleep(3)
# ------------------------------#
# change_pbd_characteristics #
# ------------------------------#
......@@ -223,7 +220,6 @@
p.change_pbd_characteristics(None, None, smgdef.SMG_C_COLOR_BLACK)
else:
p.change_pbd_characteristics(None, None, smgdef.SMG_C_COLOR_WHITE)
# ------------------------------#
# move_text #
# ------------------------------#
......@@ -351,7 +347,7 @@
key = k.read_keystroke(
"read_keystroke", display=d, rendition_set=smgdef.SMG_M_BOLD
)
print(key)
d.put_line(f"{key} '{chr(key)}'")
time.sleep(3)
# ------------------------------#
# control #
......@@ -366,6 +362,7 @@
time.sleep(2)
c.get_email("Entrer un email: ")
time.sleep(2)
# ------------------------------#
# delete Pasteboard + Keyboard #
# ------------------------------#
......@@ -369,6 +366,5 @@
# ------------------------------#
# delete Pasteboard + Keyboard #
# ------------------------------#
if s[0] == 16:
k.close()
p.close()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment