New submission from MikeS <mikesmithpa...@protonmail.com>:

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

----------
components: Tkinter
messages: 389893
nosy: msmith
priority: normal
severity: normal
status: open
title: ttk.Sizegrip disappears under Windows 10 UI Scaling, with dpiAware set 
true and >1 scaling
type: behavior
versions: Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43679>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to