Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Do you know where your variables are?
 
PerlMonks  

Re: creating simple GUI

by Sandy (Curate)
on Oct 31, 2005 at 09:58 UTC ( [id://504279]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to creating simple GUI

#!/usr/bin/perl use strict; use Tk; use Tk::ProgressBar; # make window my $mw = new MainWindow(); # tell MainWindow to execute this function after 1000 milliseconds $mw->after(1000,\&MyUpdate); # or tell MainWindow to execute this sub repeatedly $mw->repeat(1000,\&MyOtherUpdate); MainLoop; sub MyUpdate { # ... start something? } sub MyOtherUpdate { # ... update window, reset progress bar? }

Untested!

PS If you use the progress bar, you must remember to update the window (via $mw->update())

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://504279]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.