Message343532
| Author |
terry.reedy |
| Recipients |
aroberge, terry.reedy |
| Date |
2019年05月26日.04:37:25 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1558845445.86.0.440137716537.issue37041@roundup.psfhosted.org> |
| In-reply-to |
| Content |
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() |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2019年05月26日 04:37:25 | terry.reedy | set | recipients:
+ terry.reedy, aroberge |
| 2019年05月26日 04:37:25 | terry.reedy | set | messageid: <1558845445.86.0.440137716537.issue37041@roundup.psfhosted.org> |
| 2019年05月26日 04:37:25 | terry.reedy | link | issue37041 messages |
| 2019年05月26日 04:37:25 | terry.reedy | create |
|