Skip to content

Commit

Permalink
Update warpigui.py (#9)
Browse files Browse the repository at this point in the history
fixes an drawing error introduced with python 3.8
  • Loading branch information
KR8MER authored Apr 5, 2024
1 parent ae6f884 commit c21c489
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions warpigui.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,13 +275,13 @@ def fshutdown():
fill=255,
)
if packet.mode == 0:
draw.rectangle((115, 20, width - 2, 10), outline=0, fill=0)
draw.rectangle((115, 10, width - 2, 20), outline=0, fill=0)
if packet.mode == 1:
draw.rectangle((120, 18, width - 4, 14), outline=255, fill=0)
draw.rectangle((120, 14, width - 4, 18), outline=255, fill=0)
if packet.mode == 2:
draw.rectangle((120, 18, width - 4, 14), outline=255, fill=1)
draw.rectangle((120, 14, width - 4, 18), outline=255, fill=1)
if packet.mode == 3:
draw.rectangle((115, 20, width - 2, 10), outline=255, fill=1)
draw.rectangle((115, 10, width - 2, 20), outline=255, fill=1)
resp = requests.get(
"http://127.0.0.1:2501/system/status.json",
auth=(httpd_username, httpd_password),
Expand Down

0 comments on commit c21c489

Please sign in to comment.