added modules for systray icon

Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>
master
Ebbe Baß 2022-08-12 21:28:07 +02:00
parent d906d0811d
commit 66b0a1d562
2 changed files with 9 additions and 6 deletions

View File

@ -1,11 +1,10 @@
import time
import os
current_path = os.path.dirname(os.path.realpath(__file__))
import threading
try:
import serial
except ImportError:
try:
os.system("pip install pyserial")
import pystray
from PIL import Image, ImageDraw
import serial
except ImportError:
print("Please execute 'pip install -r requirements.txt'")
@ -19,5 +18,7 @@ while True:
output = output.decode("ASCII")
output = output.strip()
print(output)
except KeyboardInterrupt:
break

View File

@ -1 +1,3 @@
Pillow==9.2.0
pyserial==3.5
pystray==0.19.4