CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
TK writing to a text area

 



Caba
New User

Dec 13, 2007, 12:56 PM

Post #1 of 1 (459 views)
TK writing to a text area Can't Post

Hello,
I've moved a program over to TK and although it works, it's not quite how I want it to. When you click the start button the program runs through a loop and creates output that I want written to a text area. Problem is the output doesn't get written until all iterations of the loop have finished. Can someone point me in the right direction of how I can get the output to the text area for each pass through the loop? Code is essentially:

Code
---------------- 
TK setup stuff
----------------
MainLoop;
sub push_button {
while ($x < 50) {
do some stuff
$txt -> insert('end',"Program output\n");
$x++;
}
}


Thanks.


(This post was edited by Caba on Dec 13, 2007, 12:59 PM)

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives