From e3216da69b59cb3fa4daed555eb2c5096cd91967 Mon Sep 17 00:00:00 2001 From: Evan Su <48808396+HACKERALERT@users.noreply.github.com> Date: Sat, 13 Mar 2021 12:20:29 -0500 Subject: [PATCH] Added high DPI support --- src/Picocrypt.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Picocrypt.py b/src/Picocrypt.py index f56450f..ea26d88 100644 --- a/src/Picocrypt.py +++ b/src/Picocrypt.py @@ -32,6 +32,13 @@ import tkinter.ttk import tkinter.scrolledtext import webbrowser +# Set high DPI on Windows +try: + from ctypes import windll + windll.shcore.SetProcessDpiAwareness(1) +except: + pass + # Global variables and notices inputFile = "" outputFile = ""