Hello all:
Would anyone give me idea that how to add some buttons under listbox. Thanks
Would anyone give me idea that how to add some buttons under listbox. Thanks
Code:
set names {"Jones, Steve" "Jones, Matt" "Smith,Tony"
"Jefferies, Margaret" "Hall, Mark" "Cunningham, SallyJo"}
frame .listframe
listbox .listframe.namelist -listvariable names
scrollbar .listframe.namescroller -orient vertical
pack .listframe.namescroller -side right -fill y
pack .listframe.namelist -side left -fill both -expand yes
pack .listframe -fill both -expand yes
.listframe.namescroller configure -command ".listframe.namelist yview"
.listframe.namelist configure -yscrollcommand ".listframe.namescroller set"