aboutsummaryrefslogtreecommitdiff
path: root/src/MTools
diff options
context:
space:
mode:
authorribet2009-02-05 09:20:23 +0000
committerribet2009-02-05 09:20:23 +0000
commitd0abbef391942ce67ca6dfb430e8bdb0ebdda841 (patch)
treefb4cdf306225e9b0bec2d61d5119c6c7799584ee /src/MTools
parent84ac02a52d8eb2f5ab12815091e5590c3504fee3 (diff)
downloadmtc-d0abbef391942ce67ca6dfb430e8bdb0ebdda841.zip
mtc-d0abbef391942ce67ca6dfb430e8bdb0ebdda841.tar.gz
mtc-d0abbef391942ce67ca6dfb430e8bdb0ebdda841.tar.bz2
mtc-d0abbef391942ce67ca6dfb430e8bdb0ebdda841.tar.xz
Mise au propre du comportement flicker.
Diffstat (limited to 'src/MTools')
-rw-r--r--src/MTools/Comp/MFlicker.pm9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/MTools/Comp/MFlicker.pm b/src/MTools/Comp/MFlicker.pm
index fd622c8..d4ea0bd 100644
--- a/src/MTools/Comp/MFlicker.pm
+++ b/src/MTools/Comp/MFlicker.pm
@@ -31,19 +31,18 @@ use strict;
use MTools;
use MTools::MObjet;
use MTools::MTimer;
+use Tk;
use vars qw /@ISA/;
BEGIN
{
- @ISA = qw /MTools::MSwitch/;
+ @ISA = qw /MTools::MObjet/;
}
-use Tk;
-
sub new {
my ($class, $target, $periode) = @_;
- my $self = new MTools::MObjet ();
+ my $self = new MTools::MObjet();
$self -> {__target} = $target;
$self -> {__target} -> mconfigure (-visible => 0);
bless $self, $class;
@@ -73,7 +72,7 @@ sub show {
sub hide {
my ($self) = @_;
$self -> {__timer} -> stop ();
- $self -> mconfigure ('state' => 'unvisible');
+ $self -> {__target} -> mconfigure (-visible => 0);
}
1;