Tk Source Code

View Ticket
Login
Ticket UUID: 2439015
Title: overlapping rows in ttk::treeview
Type: Bug Version: obsolete: 8.5.5
Submitter: gcramer Created on: 2008-12-17 09:47:36
Subsystem: 88. Themed Tk Assigned To: jenglish
Priority: 3 Low Severity: Minor
Status: Closed Last Modified: 2026-06-07 20:00:13
Resolution: Fixed Closed By: bohagan
    Closed on: 2026-06-07 20:00:13
Description:
I have a serious problem with ttk::treeview. Please try the following example:

font configure TkDefaultFont -size 20
ttk::treeview .tv -columns 1 -show {}
foreach c {1 2 3} { .tv insert {} end -values {Text} }
pack .tv

The rows are overlapping. What I'm doing wrong?
User Comments: bohagan added on 2026-06-07 20:00:13:
The enhanced_treeview branch has been merged into trunk. This issue has been resolved.

bohagan added on 2026-05-03 21:39:38:
This should be fixed now in the enhanced_treeview branch, if the default row height is set to 0, for auto size.

gcramer added on 2009-01-09 16:40:36:
Thanks for your response. I'll try your suggestion.

[email protected] added on 2008-12-31 06:32:15:
> Is it planned for the near future that ttk::treeview will support any font?

Eventually yes, but not in the *near* future.

In the meantime: [ttk::style configure Treeview -rowheight $H] might do what you need.

Depends on what you're trying to do, of course, and (as usual) this is not future-proof.

gcramer added on 2008-12-31 05:05:06:
OK, then it's not a bug. Is it planned for the near future that ttk::treeview will support any font? This is the only way to have a (native) multi-column list.

jenglish added on 2008-12-23 01:42:43:
> The rows are overlapping. What I'm doing wrong?

Nothing.  The ttk::treeview widget only supports fixed-height rows at present.