This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author msmith
Recipients msmith
Date 2021-03-31.12:26:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1617193566.44.0.678288943132.issue43679@roundup.psfhosted.org>
In-reply-to
Content
When using tkinter on Windows (10) with a >1 HiDpi screen the sizegrip disappear with dpiawareness is on. A minimal example is as follows:

import tkinter as tk
import tkinter.ttk as ttk
from ctypes import windll, pointer, wintypes
windll.shcore.SetProcessDpiAwareness(1)

root = tk.Tk()
btn1 = tk.Button(root, text='btn1').pack(side=tk.LEFT)
sg = ttk.Sizegrip(root).pack(side=tk.LEFT)
btn2 = tk.Button(root, text='btn2').pack(side=tk.LEFT, fill=tk.BOTH, expand=1)
root.mainloop()

Works fine with commented "SetProcessDpiAwareness", but not when using it. This might be related to the tk issues with hidpi and small radio/checkboxes https://bugs.python.org/issue41969
History
Date User Action Args
2021-03-31 12:26:06msmithsetrecipients: + msmith
2021-03-31 12:26:06msmithsetmessageid: <1617193566.44.0.678288943132.issue43679@roundup.psfhosted.org>
2021-03-31 12:26:06msmithlinkissue43679 messages
2021-03-31 12:26:06msmithcreate