Guest User

Untitled

a guest
May 21st, 2018
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 0.47 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. while { true } {
  10.  
  11. for { set i 0 } { $i < [string length $str] } { incr i } {
  12.     for { set j 0 } { $j < $i } { incr j } {
  13.     set current_char [string index $str $j ]
  14.     set substr "$substr$current_char"
  15.     }
  16.     .student_id_lab configure -text "$substr"
  17.     set substr ""
  18.     update
  19.     after 500
  20. }
  21. .student_id_lab configure -text ""
  22. }
Add Comment
Please, Sign In to add comment