1
0
Fork 0
forked from josch/plakativ

adjust the size of the right frame depending on the display dpi

This commit is contained in:
Johannes Schauer Marin Rodrigues 2021-10-09 20:26:41 +02:00
parent 6f8a42801f
commit d58d02092a
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -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)