Skip to content

Commit

Permalink
Fixed high DPI issue
Browse files Browse the repository at this point in the history
  • Loading branch information
HACKERALERT authored Mar 13, 2021
1 parent e3216da commit bf29277
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Picocrypt.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@
tk.configure(background="#f5f6f7")
tk.resizable(0,0)

try:
dpi = windll.user32.GetDpiForWindow(tk.winfo_id())
tk.tk.call("tk","scaling",dpi/72.0)
except:
pass

# Try setting image if included with Picocrypt
try:
favicon = tkinter.PhotoImage(file="./key.png")
Expand Down

0 comments on commit bf29277

Please sign in to comment.