Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^5: Perl Tk unable to return from MainLoop when implemented in a subroutine ( tk dialogbox without toplevel mainwindow mainloop)

by Anonymous Monk
on Mar 24, 2016 at 01:56 UTC ( [id://1158676]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Perl Tk unable to return from MainLoop when implemented in a subroutine
in thread Perl Tk unable to return from MainLoop when implemented in a subroutine

#!/usr/bin/perl -- use strict; use warnings; use Tk; my $omw = tkinit(); $omw->withdraw; ## no show my $theword ; my $mw = $omw->Dialog( -textvariable => \$theword ); $mw->transient(undef); ## let dialog show even if MainWindow withdrawn for my $ix ( 1..3 ){ $theword = "bird " x $ix; print join ' ', scalar(gmtime ), $mw->Show, ## "MainLoop" "\n"; sleep 1; }
  • Comment on Re^5: Perl Tk unable to return from MainLoop when implemented in a subroutine ( tk dialogbox without toplevel mainwindow mainloop)
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-24 08:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found