From d58d02092a361df0b83ccb9a3382a6d2b32158de Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Sat, 9 Oct 2021 20:26:41 +0200 Subject: [PATCH] adjust the size of the right frame depending on the display dpi --- plakativ.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plakativ.py b/plakativ.py index 18c3382..f2d0085 100755 --- a/plakativ.py +++ b/plakativ.py @@ -879,7 +879,7 @@ class VerticalScrolledFrame(tkinter.Frame): borderwidth=0, highlightthickness=0, yscrollcommand=vscrollbar.set, - width=240, + width=240*parent.winfo_fpixels('1i')/96.0, ) canvas.pack(side=tkinter.LEFT, fill=tkinter.BOTH, expand=tkinter.TRUE) vscrollbar.config(command=canvas.yview)