Skip Menu |

This queue is for tickets about the Tk-Wizard-Bases CPAN distribution.

Report information
The Basics
Id: 22925
Status: resolved
Worked: 45 min
Priority: 0/
Queue: Tk-Wizard-Bases

People
Owner: MTHURN [...] cpan.org
Requestors: clothohk [...] gmail.com
Cc: MTHURN [...] cpan.org
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 1.951



Subject: No post/preNextButtonAction since version 1.945
Date: Fri, 10 Nov 2006 10:01:41 +0800
To: bug-Tk-Wizard-Bases [...] rt.cpan.org
From: "Clotho Tsang" <clothohk [...] gmail.com>
post/preNextButtonAction are not work since version 1.945 Here is a demo program showing the bug. Expect behaviour: Show wizard, print "per post per" after clicking 2 "Next" buttons Behaviour at version 1.942 and 1.943: Same as expect behaviour. Behaviour at 1.945 and 1.9451: Show wizard, but no word is printed after clicking 2 "Next" buttons Program here: ============================================== #!/usr/bin/perl use Tk::Wizard; require Tk::LabFrame; my $wizard = new Tk::Wizard( -title => "Test", -style => 'top', ); $wizard->configure( -postNextButtonAction => sub { print "post\n"; }, -preNextButtonAction => sub { print "per\n"; }, ); $wizard->addPage( sub{ $wizard->blank_frame( -title => "Welcome ", -subtitle => "Hi", -text =>"Hello world", );} ); $wizard->addPage( sub{ $wizard->blank_frame( -title => "Finish ", -subtitle => "bye", -text =>"the end", );} ); $wizard->Show; Tk::Wizard::MainLoop();
Subject: Re: [rt.cpan.org #22925] No post/preNextButtonAction since version 1.945
Date: Fri, 10 Nov 2006 18:50:51 +0000
To: bug-Tk-Wizard-Bases [...] rt.cpan.org
From: Lee Goddard <lee [...] leegoddard.net>
Thank you for pointing that out -- I'll have a look ASAP and make a new release! Cheers lee

Message body is not shown because sender requested not to inline it.

I fixed the ButtonAction callback mechanism in distro 1.951 which was released last week. Remember to make sure that your callbacks return a non-zero ("success") value if you want processing to continue. Tonight I will upload 1.952 which works on Linux 8-) Sorry for the delay -- - - Martin 'Kingpin' Thurn