[issue44592] tkinter focus_get() with non-tkinter Tk widget
Akuli
report at bugs.python.org
Fri Jul 9 17:03:13 EDT 2021
Akuli <akuviljanen17 at gmail.com> added the comment:
Unfortunately I don't know any real-world examples of this on Windows. The open file dialog works very differently on Windows: it uses the native Windows dialog, whereas on Linux, it's implemented in Tcl.
Meanwhile, here's a platform-independent toy example:
import tkinter
root = tkinter.Tk()
root.tk.eval("""
entry .e
pack .e
focus .e
""")
root.after(500, root.focus_get)
root.mainloop()
Also, thanks for reopening!
----------
resolution: duplicate ->
status: closed -> open
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44592>
_______________________________________
More information about the Python-bugs-list
mailing list