Compare commits
3 commits
77c8dd7fe6
...
30b300986c
Author | SHA1 | Date | |
---|---|---|---|
30b300986c | |||
60edbd0df1 | |||
2630a56162 |
3 changed files with 14 additions and 1 deletions
|
@ -104,4 +104,5 @@ class ReceiptPrinter(CupsPrinter):
|
||||||
with self.set(align="center", double_height=True, double_width=True):
|
with self.set(align="center", double_height=True, double_width=True):
|
||||||
p.textln(text)
|
p.textln(text)
|
||||||
|
|
||||||
p = ReceiptPrinter("EPSON-TM-m30", profile="default")
|
#p = ReceiptPrinter("EPSON-TM-m30", profile="default")
|
||||||
|
p = ReceiptPrinter("EPSON-TM-m30-remote", profile="default")
|
||||||
|
|
|
@ -7,6 +7,7 @@ let
|
||||||
python-escpos = pythonPrev.python-escpos.overrideAttrs (oldAttrs: {
|
python-escpos = pythonPrev.python-escpos.overrideAttrs (oldAttrs: {
|
||||||
version = "0.0.0+unstable-2024-10-10";
|
version = "0.0.0+unstable-2024-10-10";
|
||||||
src = oldAttrs.src.override {
|
src = oldAttrs.src.override {
|
||||||
|
tag = null;
|
||||||
rev = "7d42f117161362e99c56431ebeb2ef1e9c91c495";
|
rev = "7d42f117161362e99c56431ebeb2ef1e9c91c495";
|
||||||
hash = "sha256-Wl7naHbsYfN+VYASQXyWrLNF953nwoM0ugiutE2jYNI=";
|
hash = "sha256-Wl7naHbsYfN+VYASQXyWrLNF953nwoM0ugiutE2jYNI=";
|
||||||
};
|
};
|
||||||
|
|
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