in reply to Tk Screen Refresh

The refresh issue can be fixed by slightly modifying the following:
my $screen = $top -> Label( -textvariable => "$number", -background => 'white', -width => 30, -borderwidth => 2, -relief => 'sunken', ) -> pack(-pady => 5);
To:
my $screen = $top -> Label( -text => \$number, -background => 'white', -width => 30, -borderwidth => 2, -relief => 'sunken', ) -> pack(-pady => 5);

There are other issues with the logic you're using for the numbers. Still, it's a pretty good first attempt.

Rob

Replies are listed 'Best First'.
Re^2: Tk Screen Refresh
by Andrew_Levenson (Hermit) on Nov 28, 2006 at 11:29 UTC
    Thanks, that does clear that up!
    Now that I can see what is going on, I can work out the logic issues.