Guest User

Untitled

a guest
Dec 4th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 0.31 KB | None | 0 0
  1. this is a call back proc for the listbox .lst. I want to set and activate the current selection to something else.
  2.  
  3. proc delete_from_list { } {
  4. #to delete the current selection
  5. #كي نمح الاختيار الحالي.
  6. set selected_index [ .lst  curselection ]
  7. .lst delete $selected_index
  8. .lst activate 0
  9. }
Add Comment
Please, Sign In to add comment