Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Tk won't output until finished

by Athanasius (Canon)
on Jan 29, 2013 at 15:55 UTC ( #1015895=note: print w/ replies, xml ) Need Help??

in reply to Tk won't output until finished

The following seems to work correctly:

sub check_card { my $cardno = $card->get(); if (length $cardno == 0) { error_no_card(); } elsif (length $cardno > 0) { $mw->Label ( -text => "\nChecking Account Details for '$cardno'.\n Ple +ase Wait......\n", -width => 54, )->pack(); $mw->update; my $exists = check_in_SQLStore($cardno); print "We got nothing\n" unless $exists; } }

That is, call $mw->update; immediately after creating the label.

See, for example, the recent thread Perl/Tk window contents disappear when obscured then revealed.

Hope that helps,

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

Comment on Re: Tk won't output until finished
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (11)
As of 2016-05-27 16:14 GMT
Find Nodes?
    Voting Booth?