Skip to content

Commit

Permalink
Merge pull request #645 from clach04/patch-1
Browse files Browse the repository at this point in the history
screenmirror.py tweak math to avoid hard coded constant
  • Loading branch information
Blueforcer authored Jan 4, 2025
2 parents f6653f6 + 3e1d3e2 commit 346c927
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Helper_Scripts/screenmirror.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ def __init__(self, root, ip_address):
self.labels = []

screen_width = root.winfo_screenwidth()
label_width = (screen_width // 32) // 2
label_height = label_width
label_width = (screen_width // self.width) // 2
label_height = label_width # 1:1 Verhältnis (ratio)
padding = 1
top_margin = 0

Expand Down Expand Up @@ -82,4 +82,4 @@ def capture_image(self):
root.resizable(False, False)
ip_address = simpledialog.askstring("AWTRIX 3", "Please enter IP address:")
app = LedScreenApp(root, ip_address)
root.mainloop()
root.mainloop()

0 comments on commit 346c927

Please sign in to comment.