Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Label update
high folks,
I've written a perl tk script which automatically sucks webpages
from the net and saves them on the users hard disk.
now I want to implement a lable by which the user is informed about
the progress of the download process, e.g. 'page 7 download ok.'
but obviously perl is so busy with the download process, that the
label can't be updated. only the last message after the end of the
download is displayed. I guess there will be the same problem with
the scale widget.
any suggesions?

thanx for your help, Helmut

Report this thread to moderator Post Follow-up to this message
Old Post
Helmut Blass
09-23-04 08:58 PM


Re: Label update
Helmut Blass wrote:
> high folks,
> I've written a perl tk script which automatically sucks webpages
> from the net and saves them on the users hard disk.
> now I want to implement a lable by which the user is informed about
> the progress of the download process, e.g. 'page 7 download ok.'
> but obviously perl is so busy with the download process, that the
> label can't be updated. only the last message after the end of the
> download is displayed. I guess there will be the same problem with
> the scale widget.
> any suggesions?
>
> thanx for your help, Helmut

Can you put a $toplevel->update; anywhere in your download loop?

Report this thread to moderator Post Follow-up to this message
Old Post
thundergnat
09-23-04 08:58 PM


Re: Label update
In article <415310bc$0$4053$61fed72c@news.rcn.com>, thundergnat wrote:
>Helmut Blass wrote: 
>
>Can you put a $toplevel->update; anywhere in your download loop?

The question becomes, "What if I'm using LWP, and I have no place at which
to insert an update call?"  I've often wondered that.

Might not apply to his situation, but I wonder all the same.

--
Vorxion - Founder of the knocking-shop of the mind.

"You have it, you sell it, you've still got it--what's the difference?"
--Diana Trent, "Waiting for God", on why a modelling agency is really a
knocking-shop.  Applied by me to the field of consulting.  :)

The Sci-Fi fan's solution to debt:  Reverse the polarity on your charge card
.

Report this thread to moderator Post Follow-up to this message
Old Post
Vorxion
09-24-04 09:01 PM


Re: Label update
vorxion@knockingshopofthemind.com (Vorxion) wrote in
news:41543348_1@news.iglou.com:
 
>
> The question becomes, "What if I'm using LWP, and I have no place at
> which to insert an update call?"  I've often wondered that.
>
> Might not apply to his situation, but I wonder all the same.

LWP::UserAgent allows you to specify a callback that will be called for
each "chunk" of data retrieved, with the "chunk" size being specified by
you.  You can call update() for each chunk.


Report this thread to moderator Post Follow-up to this message
Old Post
Eric Bohlman
09-25-04 01:56 AM


Re: Label update
In article <Xns956E9D1C55629ebohlmanomsdevcom@130.133.1.4>, Eric Bohlman wrote:
>vorxion@knockingshopofthemind.com (Vorxion) wrote in
>news:41543348_1@news.iglou.com:
> 
>
>LWP::UserAgent allows you to specify a callback that will be called for
>each "chunk" of data retrieved, with the "chunk" size being specified by
>you.  You can call update() for each chunk.

Thanks!  Didn't know about it, but it's been a while since I was deep in
the guts of LWP.  Saved for future reference, as well as (hopefully)
committed to memory.

Apprecite it!

--
Vorxion - Founder of the knocking-shop of the mind.

"You have it, you sell it, you've still got it--what's the difference?"
--Diana Trent, "Waiting for God", on why a modelling agency is really a
knocking-shop.  Applied by me to the field of consulting.  :)

The Sci-Fi fan's solution to debt:  Reverse the polarity on your charge card
.

Report this thread to moderator Post Follow-up to this message
Old Post
Vorxion
09-26-04 08:55 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PerlTk archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:28 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.