Hello all:
I want to bring up a new window with a list box by click a button.
but I do not why my code can not work. Would anyone help me, please.
I want to bring up a new window with a list box by click a button.
but I do not why my code can not work. Would anyone help me, please.
Code:
button .b -text "button" -bg white -command newWindow
pack .b
proc newWindow {} {
toplevel .t
set lv {'test" "test"}
frame .listframe
listbox .listframe.namelist -listvariable lv \
pack .t.listframe.namelist -side top
}