Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

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); }


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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://123079]
[LanX]: ah... Denmark is planning to build a wall at the German border!
[LanX]: # Pestis Africana Suum
[erix]: that's an old plan, I think. Isn't there already a danewal (or some such name)?

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (12)
As of 2018-03-22 18:36 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (283 votes). Check out past polls.