Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this messageHelmut 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?
Post Follow-up to this messageIn 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 .
Post Follow-up to this messagevorxion@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.
Post Follow-up to this messageIn 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 .
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.