Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#2572 overlapping rows in ttk::treeview

obsolete: 8.5.5
open-later
Joe English
3
2008-12-22
2008-12-17
Gregor Cramer
No

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?

Discussion

  • Joe English
    Joe English
    2008-12-22

    • priority: 5 --> 3
    • status: open --> open-later
     
  • Joe English
    Joe English
    2008-12-22

    > The rows are overlapping. What I'm doing wrong?

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

     
  • Gregor Cramer
    Gregor Cramer
    2008-12-30

    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.

     
  • > 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.

     
  • Gregor Cramer
    Gregor Cramer
    2009-01-09

    Thanks for your response. I'll try your suggestion.