6 use Test::More Wx::wxMAC() ? ( 'skip_all' => 'Hangs on wxMac' ) :
8 use Tests_Helper qw(test_app);
14 use vars qw(@ISA); @ISA = qw(Wx::Timer);
17 main::ok( 1, "Overriding Notify works" );
26 use base qw(Wx::EvtHandler);
27 use Wx::Event qw(EVT_TIMER);
31 my $this = $class->SUPER::new( @_ );
33 EVT_TIMER( $this, -1, \&OnTimer );
39 main::ok( 1, "EVT_TIMER works" );
40 my $frame = Wx::wxTheApp()->GetTopWindow;
41 $frame->{T1}->Destroy;
42 $frame->{T2}->Destroy;
49 use base qw(Wx::Frame);
53 my $this = $class->SUPER::new( @_ );
55 my $timer2 = Wx::Timer->new( MyHandler->new );
56 $timer2->Start( 800, 1 );
58 my $timer1 = MyTimer->new;
59 $timer1->Start( 100, 1 );
61 $this->{T1} = $timer1;
62 $this->{T2} = $timer2;
69 my $app = test_app( sub {
70 MyFrame->new( undef, -1, 'boo' )->Show( 1 );