Message389893
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 |
|
Date |
User |
Action |
Args |
2021-03-31 12:26:06 | msmith | set | recipients:
+ msmith |
2021-03-31 12:26:06 | msmith | set | messageid: <1617193566.44.0.678288943132.issue43679@roundup.psfhosted.org> |
2021-03-31 12:26:06 | msmith | link | issue43679 messages |
2021-03-31 12:26:06 | msmith | create | |
|