Skip Menu |

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

Report information
The Basics
Id: 7837
Status: resolved
Worked: 2 min
Priority: 0/
Queue: Tk-Multi

People
Owner: Nobody in particular
Requestors: aclarke [...] civica.com.au
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.004
Fixed in: 1.006



Subject: using Tk::Multi with modern Perl and Tk
RedHat Linux 8ish Perl 5.8.5 Perl/Tk 804.027 I think the key of this bug is probably related to this line from your README file: "This module was written with perl5.00502 and needs Tk800.013 to work." I'm installing Tk::Multi because another module requires it, and during testing it's issuing a lot of invalid argument errors: PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/canvas..........ok 1/4bad option "fill": must be -after, -anchor, -before, -expand, -fill, -in, -ipadx, -ipady, -padx, -pady, or - side at /usr/lib/perl5/site_perl/5.8.5/i686-linux-thread-multi/Tk/Widget.pm line 1144. at t/canvas.t line 42 t/canvas..........dubious Test returned status 255 (wstat 65280, 0xff00) The first bunch of errors involved a 'side' option in the Tk calls, which I've patched in the tests; now it's progressed to the 'fill' option and it will probably report all the old-style options you've used... I haven't used Tk much, especially in the past, but I'll guess that older Perl/Tk supported options without the need for the leading - ie 'side' instead of -side ? And I guess that more recent versions of Tk have tightened up the options too. I have looked into the .pm files of your module and see all sorts of options without '-' in many places, and including some use of qw// to build lists of arguments. I can patch the files myself manually at least to the point where it passes the test, but I might miss some calls that do not get tested; it depends how extensive your tests are.
[guest - Thu Sep 30 20:18:28 2004]: I've tested my module with debian/unstable which runs perl5.8.4 and Tk800.025 and I've got no problems. So I'll re-read my code to add all these missing dashes, but I may miss some of them sine the tests already . Show quoted text
> I haven't used Tk much, especially in the past, but I'll guess that > older Perl/Tk supported options without the need for the leading - > ie 'side' instead of -side ? And I guess that more recent versions > of Tk have tightened up the options too.
You're right. I already had some similar problems with previous upgrades of Tk. Show quoted text
> I have looked into the .pm files of your module and see all sorts of > options without '-' in many places, and including some use of qw// > to build lists of arguments. > > I can patch the files myself manually at least to the point where it > passes the test, but I might miss some calls that do not get > tested; it depends how extensive your tests are.
Unfortunately, I've found no way to get an automatic tests of the GUI, so the test coverage actually depends on the functions you will activate during your tests.