[issue31552] IDLE: Convert browswers to use ttk.Treeview

2022-03-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: ttk.Treeview also has problems, at least on some systems and versions. https://mail.python.org/pipermail/tkinter-discuss/2022-March/004226.html HiDPI displays and tkinter [cont]

[issue31552] IDLE: Convert browswers to use ttk.Treeview

2022-03-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3. continued. As noted in #22628, idlelib.tree has line spacing and other stuff hardcoded so it will not work properly on all monitors. -- ___ Python tracker

[issue31552] IDLE: Convert browswers to use ttk.Treeview

2021-06-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Concrete reason 3. Treewidget does not work on high-res monitors. The #37041 quick Treeview test worked for Andre Roberge -- nosy: +aroberge versions: +Python 3.11 -Python 3.7, Python 3.8 ___ Python tracker

[issue31552] IDLE: Convert browswers to use ttk.Treeview

2019-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: I changed the type to behavior because the hard-coded pixel heights prevent the browsers form being usable on at least one HiDPI monitor. I closed #37041 in favor of this on the presumption that ttk.Treeview will work on such monitors, at least after

[issue31552] IDLE: Convert browswers to use ttk.Treeview

2017-09-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: The main issue for conversion is expanding nodes. tree.py does not define a widget class. Rather, is uses a used a canvas and places images and text thereupon. The latter is done with instances of TreeNode. Each instance thereof is

[issue31552] IDLE: Convert browswers to use ttk.Treeview

2017-09-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Two concrete reasons to make the conversion: two issues are stymied by current tree.TreeNode. 1. #25090 tree.TreeNode requires an icon for every line. Hence functions and classes get python file and director icons and they are difficult to

[issue31552] IDLE: Convert browswers to use ttk.Treeview

2017-09-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: >From #31461: Browsers currently use idlelib.tree.TreeWidget. Treeview is not >a drop-in replacement because TreeWidget has some of the higher-level >app-specific functions that users are expected to add to Treeview. But could >Treeview replace the

[issue31552] IDLE: Convert browswers to use ttk.Treeview

2017-09-22 Thread Terry J. Reedy
New submission from Terry J. Reedy: ttk.Treeview should look as good as idlelib.tree, but will check. It is more flexible. Note that Treeview is low-level, need to add higher level functions or classes. See if can more or less duplicate API of tree Items. -- assignee: terry.reedy