mirror of
https://github.com/HACKERALERT/Picocrypt.git
synced 2024-12-29 19:02:43 +00:00
Fixed high DPI issue
This commit is contained in:
parent
e3216da69b
commit
bf29277b92
1 changed files with 6 additions and 0 deletions
|
@ -66,6 +66,12 @@ tk.title("Picocrypt")
|
|||
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")
|
||||
|
|
Loading…
Reference in a new issue