Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Basic questions of Tk programming

by tybalt89 (Monsignor)
on Jan 24, 2025 at 01:27 UTC ( [id://11163836]=note: print w/replies, xml ) Need Help??


in reply to Re: Basic questions of Tk programming
in thread Basic questions of Tk programming

Re^3: PERL Tk label(-textvariable))
  • Comment on Re^2: Basic questions of Tk programming

Replies are listed 'Best First'.
Re^3: Basic questions of Tk programming
by GrandFather (Saint) on Jan 24, 2025 at 03:04 UTC

    BAH. Either I didn't super search back far enough or SS dropped the ball.

    A pity OP didn't read as far as Annonymonk's reply.

    Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond

      ok this is interesting though, waitVisibility call hack

      #!/usr/bin/perl use strict; use warnings; use Tk; my $number = 1; my $mw = MainWindow->new; $mw->waitVisibility; my $label = $mw->Label(-textvariable =>\$number)->pack(); $mw->repeat(1000, [sub{ ${$_[0]}++; $label->update; }, \ $number] ); $mw->waitVisibility;

      displays an incrementing counter

        > displays an incrementing counter

        When you append a MainLoop();, yes, it does.

        map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2025-11-17 21:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (72 votes). Check out past polls.

    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.