Posted to tcl by oldlaptop at Mon Feb 10 23:53:43 GMT 2025view raw

  1. ttk::labelframe .foo
  2. ttk::frame .foo.fancylabel
  3. ttk::label .foo.label -text "Hey look, words!"
  4. ttk::entry .foo.words
  5.  
  6. text .foo.bar
  7.  
  8. grid .foo.label .foo.words -in .foo.fancylabel
  9.  
  10. # None of these seem to make a difference (nor, according to the documentation,
  11. # should they be expected to):
  12. #raise .foo.label
  13. #raise .foo.words
  14.  
  15. # This results in a blank label for the labelframe:
  16. .foo configure -labelwidget .foo.fancylabel
  17.  
  18. # But this lays out as expected.
  19. #grid .foo.fancylabel
  20.  
  21. grid .foo.bar
  22. grid .foo
  23.