Guest User

Untitled

a guest
May 21st, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 0.35 KB | None | 0 0
  1. #!/usr/bin/wish
  2. #code to make a Marquee
  3. label .student_id_lab
  4. pack .student_id_lab
  5.  
  6. set str "mysql is a database"
  7. set substr ""
  8.  
  9. proc marquee {path str {len 0}} {
  10.     if {[string length $str] == $len} return
  11.  
  12.     $path configure -text [string range $str 0 $len]
  13.     after 500 [list marquee $path $str [incr len]]
  14. }
  15.  
  16. marquee .student_id_lab $str
Add Comment
Please, Sign In to add comment