in reply to Re^3: Basic questions of Tk programming
in thread Basic questions of Tk programming
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Basic questions of Tk programming
by choroba (Cardinal) on Jan 31, 2025 at 08:38 UTC | |
by Don Coyote (Hermit) on Jan 31, 2025 at 16:04 UTC | |
by choroba (Cardinal) on Jan 31, 2025 at 16:12 UTC | |
by Don Coyote (Hermit) on Jan 31, 2025 at 17:51 UTC | |
by Don Coyote (Hermit) on Jan 31, 2025 at 16:51 UTC |