Skip Menu |

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

Report information
The Basics
Id: 67003
Status: resolved
Priority: 0/
Queue: Tk-Wizard

People
Owner: LGODDARD [...] cpan.org
Requestors: ASB [...] cpan.org
Cc:
AdminCc:

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



Subject: addLicencePage() - progress without accepting the license
Hi! The documentation of Tk::Wizard::Installer states: "The user cannot progress until the former option has been chosen." However, the user is able to proceed without even selection any option. Please find attached the code reproducing the problem. I am able to reach the second page without accepting the license. Some more info: OS: Win 7 x64 Perl: strawberry perl 5, version 12, subversion 2 (v5.12.2) built for MSWin32-x64-multi-thread Tk: 804.028503 HTH, Alex
Subject: license_progress.pl.txt
#!perl use strict; use warnings; use FindBin qw/$Bin/; use Tk::Wizard::Installer; my $path_to_licence_text = $Bin . '/license.txt'; my $wizard = Tk::Wizard::Installer->new( -title => "Installer Test", ); $wizard->configure( -style => 'top' ); $wizard->addLicencePage( -filepath => $path_to_licence_text ); $wizard->addPage( sub { return $wizard->blank_frame( -title => "Page Title", -subtitle => "Sub-title", -text => "Some text.", #-wait => $milliseconds_b4_proceeding_anyway, ); } ); $wizard->addPage( sub { $wizard->blank_frame(@_) }, -preNextButtonAction => sub { warn "My -preNextButtonAction called here" }, -postNextButtonAction => sub { warn "My -postNextButtonAction called here" }, ); $wizard->Show(); Tk::Wizard::Installer::MainLoop(); exit(0);
Hi there! Meanwhile, I figured out how to do it the other way (all hail to TIMTOWTDI). As written in the docs, one can assign the callback_licence_agreement() to the -preNextButtonAction option: --- snip --- $wizard->addLicencePage( -filepath => $path_to_licence_text, -preNextButtonAction => sub{ $wizard->callback_licence_agreement(@_); }, ); --- /snip --- HTH Alex
Hi Alan I'm glad you got it functioning. Since your ticket came in, I've had to rebuild the Perl/Apache/PHP/MySQL/GCC/autoconf install on my Mac, but hope to get to this ticket soon. Cheers Lee
Hi Lee! I hope you have succeeded in setting up your Perl/Apache/PHP/MySQL/GCC/autoconf install on Mac. I can remember the pleasure, when I had to do this last time... :-s Am Di 29. Mär 2011, 02:53:39, LGODDARD schrieb: Show quoted text
> Hi Alan > > I'm glad you got it functioning. Since your ticket came in, I've had to > rebuild the Perl/Apache/PHP/MySQL/GCC/autoconf install on my Mac, but > hope to get to this ticket soon. > > Cheers > Lee
Subject: Re: [rt.cpan.org #67003] addLicencePage() - progress without accepting the license
Date: Wed, 20 Apr 2011 15:30:49 +0200
To: bug-Tk-Wizard [...] rt.cpan.org
From: Lee Goddard <leegee [...] gmail.com>
Unfortunately, work got in the way.... On 20/04/2011 15:27, Alexander Becker via RT wrote: Show quoted text
> Queue: Tk-Wizard > Ticket<URL: https://rt.cpan.org/Ticket/Display.html?id=67003> > > Hi Lee! > > I hope you have succeeded in setting up your Perl/Apache/PHP/MySQL/GCC/autoconf install > on Mac. I can remember the pleasure, when I had to do this last time... :-s > > Am Di 29. Mär 2011, 02:53:39, LGODDARD schrieb:
>> Hi Alan >> >> I'm glad you got it functioning. Since your ticket came in, I've had to >> rebuild the Perl/Apache/PHP/MySQL/GCC/autoconf install on my Mac, but >> hope to get to this ticket soon. >> >> Cheers >> Lee
> >
User found docs confusing but got there in the end. New ticket to make new docs? Hi there! Meanwhile, I figured out how to do it the other way (all hail to TIMTOWTDI). As written in the docs, one can assign the callback_licence_agreement() to the -preNextButtonAction option: --- snip --- $wizard->addLicencePage( -filepath => $path_to_licence_text, -preNextButtonAction => sub{ $wizard->callback_licence_agreement(@_); }, ); --- /snip --- HTH Alex
Actually, there is simply an error in the docs. Please read the first post of this ticket. I just posted a way to hack your module to make it do what it should do according to the documentation, in case anyone using the module is having the same issue. Am Di 31. Mai 2011, 10:43:31, LGODDARD schrieb: Show quoted text
> User found docs confusing but got there in the end. > > New ticket to make new docs? > > > > Hi there! > > Meanwhile, I figured out how to do it the other way (all hail to > TIMTOWTDI). As written in the docs, one can assign the > callback_licence_agreement() to the -preNextButtonAction option: > > --- snip --- > $wizard->addLicencePage( > -filepath => $path_to_licence_text, > -preNextButtonAction => sub{ > $wizard->callback_licence_agreement(@_); > }, > ); > --- /snip --- > > HTH > > Alex
Subject: Re: [rt.cpan.org #67003] addLicencePage() - progress without accepting the license
Date: Tue, 31 May 2011 17:11:29 +0200
To: bug-Tk-Wizard [...] rt.cpan.org
From: Lee Goddard <leegee [...] gmail.com>
Oh, I see - thanks! On 31/05/2011 17:03, Alexander Becker via RT wrote: Show quoted text
> Queue: Tk-Wizard > Ticket<URL: https://rt.cpan.org/Ticket/Display.html?id=67003> > > Actually, there is simply an error in the docs. Please read the first post of this ticket. > > I just posted a way to hack your module to make it do what it should do according to the > documentation, in case anyone using the module is having the same issue. > > Am Di 31. Mai 2011, 10:43:31, LGODDARD schrieb:
>> User found docs confusing but got there in the end. >> >> New ticket to make new docs? >> >> >> >> Hi there! >> >> Meanwhile, I figured out how to do it the other way (all hail to >> TIMTOWTDI). As written in the docs, one can assign the >> callback_licence_agreement() to the -preNextButtonAction option: >> >> --- snip --- >> $wizard->addLicencePage( >> -filepath => $path_to_licence_text, >> -preNextButtonAction => sub{ >> $wizard->callback_licence_agreement(@_); >> }, >> ); >> --- /snip --- >> >> HTH >> >> Alex
> >
Finally resolved in Tk-Wizard-2.153