rubberscissors
Technical User
I've got a text widget that I've associated with a variable (x), and I'm trying to cause text messages to appear in the widget, with a pause in between each message. I tried the following:
$x insert end "Message 1\n"
after 300
$x insert end "Message 2\n"
after 300
$x insert end "Message 3\n"
When it's called, however, what it seems to do is wait right off the bat without printing the first message, then, when it's finished waiting it just prints all three messages. Does anyone know what I'm doing wrong? I'm using Tcl/Tk 8.3
$x insert end "Message 1\n"
after 300
$x insert end "Message 2\n"
after 300
$x insert end "Message 3\n"
When it's called, however, what it seems to do is wait right off the bat without printing the first message, then, when it's finished waiting it just prints all three messages. Does anyone know what I'm doing wrong? I'm using Tcl/Tk 8.3