create todo list script
This commit is contained in:
parent
60edbd0df1
commit
30b300986c
1 changed files with 11 additions and 0 deletions
11
todo.py
Normal file
11
todo.py
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
from printer import p
|
||||||
|
from datetime import datetime
|
||||||
|
|
||||||
|
with p:
|
||||||
|
p.title(" TODO List ", size=4)
|
||||||
|
p.subtitle(datetime.today().strftime("%Y-%m-%d"))
|
||||||
|
p.ln()
|
||||||
|
|
||||||
|
with open("/home/infinidoge/TODO.txt", "r") as f:
|
||||||
|
for line in f.readlines():
|
||||||
|
p.textln(line.replace("- ", "[ ] ").rstrip())
|
Loading…
Reference in a new issue