Hi all:
I try to understand how to use uplevel.
In my program, I create a button in a frame first,
then I add a notifier to the button, if I click on the
button, it will bring up a new window with a listbox,
and a text in the right side of the listbox. But when
I click on the button, I can not see new window come out.
Would anyone help me, please.
I try to understand how to use uplevel.
In my program, I create a button in a frame first,
then I add a notifier to the button, if I click on the
button, it will bring up a new window with a listbox,
and a text in the right side of the listbox. But when
I click on the button, I can not see new window come out.
Would anyone help me, please.
Code:
button .b -text "button" -bg white -command { }
pack .b -side top
proc check {} {
toplevel .w
listbox .w.g -text "test"
pack .w.g -side right
}