[issue37041] IDLE: path browser unusable on some displays

Terry J. Reedy report at bugs.python.org
Sun May 26 00:37:25 EDT 2019


Terry J. Reedy <tjreedy at udel.edu> added the comment:

Another reason to replace IDLE's custom tree widget with hard-coded constants with ttk.Treeview.

I am closing this because I believe that #31552 will solve this problem.  For an initial check, run the following test code, extracted from
https://tkdocs.com/tutorial/tree.html
Click the [+] buttons.  I am curious whether commenting out the fix_scaling call makes any difference.

---------
import tkinter as tk
from tkinter import ttk
from idlelib.run import fix_scaling

root = tk.Tk()
tree = ttk.Treeview(root)
tree.pack()
fix_scaling(root)

tree.insert('', 'end', 'widgets', text='Widget Tour')
tree.insert('', 0, 'gallery', text='Applications')
id = tree.insert('', 'end', text='Tutorial')
tree.insert('widgets', 'end', text='Canvas')
tree.insert(id, 'end', text='Tree')

root.mainloop()

----------
assignee:  -> terry.reedy
components: +IDLE
resolution:  -> duplicate
stage:  -> resolved
superseder:  -> IDLE: Convert browswers to use ttk.Treeview
type:  -> behavior
versions: +Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37041>
_______________________________________


More information about the Python-bugs-list mailing list