I have:
ttk::notebook .nb
listbox .com \
-height 0 \
-listvariable commands \
-exportselection 0
listbox .brew \
-height [llength $teaList] \
-width 50 \
-selectmode single \
-exportselection 0
bind .brew <<ListboxSelect>> [list makeTea .brew]
foreach tea ${teaList} {
dict with tea {
.brew insert end [format {%-30s %-10s %2s} ${Tea} ${LastUsed} ${Location}]
}
}
.nb add .com -text Commands
.nb add .brew -text "Brew Tea"
pack .nb
but earlier I had:
listbox .com \
-height 0 \
-listvariable commands \
-exportselection 0
listbox .brew \
-height [llength $teaList] \
-width 50 \
-selectmode single \
-exportselection 0
bind .brew <<ListboxSelect>> [list makeTea .brew]
foreach tea ${teaList} {
dict with tea {
.brew insert end [format {%-30s %-10s %2s} ${Tea} ${LastUsed} ${Location}]
}
}
ttk::notebook .nb
.nb add .com -text Commands
.nb add .brew -text "Brew Tea"
pack .nb
This did not work: I got empty tabs. What is the reason for this?
--
Cecil Westerhof
Senior Software Engineer
LinkedIn:
http://www.linkedin.com/in/cecilwesterhof