From 2e463fdab0ad1665bb9f2af4c6fec9b6937de11f Mon Sep 17 00:00:00 2001 From: mertz Date: Tue, 29 Oct 2002 08:16:27 +0000 Subject: ajout de qqs fichiers de test (qui mettaient en évidence des bugs corrigés en version 4.11) --- test/Ivy::exit.pl | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 test/Ivy::exit.pl (limited to 'test/Ivy::exit.pl') diff --git a/test/Ivy::exit.pl b/test/Ivy::exit.pl new file mode 100755 index 0000000..a9b31a0 --- /dev/null +++ b/test/Ivy::exit.pl @@ -0,0 +1,28 @@ +#!/usr/bin/perl -w + +#use lib '/home/mertz/CODE/lib/ivy-perl'; +#BEGIN { print "INC = @INC\n";} +use strict; + +use Tk; +use Ivy; +#print "INC = @INC\n"; +Ivy->init('-loopMode' => 'TK', '-appName' => 'toto'); +my $ivy = Ivy->new(); +$SIG{HUP} = $SIG{TERM} = $SIG{QUIT} = $SIG{INT} = $SIG{STOP} = $SIG{KILL} = 'quit'; + +my $mw = MainWindow->new; +my $b = $mw->Button(-text => 'Un bouton', -command => \&quit)->pack(); +$ivy->start; +Tk::MainLoop; + +sub quit { + #$b->destroy; + #$mw->destroy; + print "Avant Ivy::stop\n"; + Ivy::exit(); + #print "Apres Ivy::stop\n"; + #Tk::exit(); +} + +1; -- cgit v1.1