Phoenix.pm: Re: I need Perl/Tk Wisdom
Jason Riedel
jasonriedel at jasonriedel.com
Sat May 17 05:16:41 CDT 2003
Sorry,
No need to answer my dumb question. The answer was $w->update; after each insert()
Thanks,
Jason Riedel
----- Original Message -----
From: Jason Riedel
To: phoenix-pm-list at happyfunball.pm.org
Sent: Friday, May 16, 2003 9:53 PM
Subject: I need Perl/Tk Wisdom
Fellow Perl Mongers,
I am working on an application that has 2 text boxes.
One gathers data: $config_text
The other shows the results: $results_text
When a button is pressed the data from that test box is retrieved and stored in an array. After some checks all the data is submitted to the proper sub routine and in each one Net::Telnet::Cisco is called and executes it's foreach loop roughly 20-100 times. Inside the foreach loop I call $results_text->insert('end', "update");. The problem is I won't see the text until the foreach loop has completed all of its runs.
I tried using the after() fix listed in the following post, but had no luck.
http://www.perlmonks.org/index.pl?node_id=65969
However,I could have implemented it wrong?
Any help or suggestions is appreciated, full source is attached.
Thanks,
Jason Riedel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/archives/phoenix-pm/attachments/20030517/ea96dd8b/attachment.htm
More information about the Phoenix-pm
mailing list