screen display only updates on callback to text widget
"Bill Mezian" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.tk |
|---|---|
| Message-ID | <[email protected]> |
Hello all,
On the Win32 platform using active State 5.8x, I have a program that while
processing a file, writes updates to a text widget, with processing
beginning by a command subroutine from a button press:
$f ->Button(-text => "Process New",
-font => 'tahoma 8 bold',
-activebackground => '#D0C36B',
-command => \&process_data_file)
->pack(-side => 'left', -expand => 1, -fill => 'x', -pady =>
1, -anchor => 'w');
The callback to the ROText widget is:
$t->insert("end", "Adding ". $dlrstnum . " " . $year . " " . $make . " " .
$model . "\n");
called from within a while loop. My problem is this, the screen display only
updates after all of the processing has finished, rather than writing each
line out to the window as it is being processed.
Can anyone help with a suggestion on how to get the screen display to update
as the file is processing? The behavior is also the same using a progress
bar, and output from a ping command to the same text widget.
Thanks for any help!
Bill
-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server. If you wish to unsubscribe from this mailing list, send the
message body of "unsubscribe ptk" to [email protected]