Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Refresh Display in Perl Tk

by BigJoe (Curate)
on Nov 04, 2001 at 01:04 UTC ( #123079=note: print w/ replies, xml ) Need Help??


in reply to Refresh Display in Perl Tk

I think you need to actually change the text in the label. This should make it refresh. I would suggest looking at this. When I did VB applications this is what we had to do so I think it would be the same for Perl. This has not been tested and it is just my weekend ramblings.

#!/usr/bin/perl use strict; use Tk; my $top = new MainWindow; my $not_stopped = 1; my $id = ""; while($not_stopped){ $id = $top->Label(-text =>&gettime); sleep(10); }


--BigJoe

Learn patience, you must.
Young PerlMonk, craves Not these things.
Use the source Luke.


Comment on Re: Refresh Display in Perl Tk
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://123079]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2015-07-03 21:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (56 votes), past polls