Skip Menu |

This queue is for tickets about the Tk CPAN distribution.

Report information
The Basics
Id: 47132
Status: resolved
Priority: 0/
Queue: Tk

People
Owner: Nobody in particular
Requestors: jackandalison [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 804.028_502



Subject: The -color option is not recognized by the Canvas grid item.
Date: Thu, 18 Jun 2009 22:10:36 -0400
To: bug-Tk [...] rt.cpan.org
From: "Alison & Jack Langsdorf" <jackandalison [...] gmail.com>
The -color option is not recognized by the Canvas grid item. The code below gives the error, if I remove the -color option the error goes away and the grid returns to default black. #!/usr/bin/perl -w use Tk 804; $MW = MainWindow->new; $c = $MW->Canvas(-scrollregion => [-200,-100,200,100],)->grid; $c->createGrid(0,0,20,20,-color=>"red"); MainLoop; Bad option `-color' at /Library/Perl/5.8.6/darwin-thread-multi-2level/Tk.pm line 250. System information: perl v5.8.6 built for darwin-thread-multi-2level Tk version 804 ( I think Tk-804.028_501) Darwin new-host.home 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 i386 i386 - Jack Langsdorf
On Thu Jun 18 22:11:32 2009, jackandalison@gmail.com wrote: Show quoted text
> The -color option is not recognized by the Canvas grid item. The code > below gives the error, if I remove the -color option the error goes > away and the grid returns to default black. > > #!/usr/bin/perl -w > use Tk 804; > $MW = MainWindow->new; > $c = $MW->Canvas(-scrollregion => [-200,-100,200,100],)->grid; > $c->createGrid(0,0,20,20,-color=>"red"); > MainLoop; > > Bad option `-color' at > /Library/Perl/5.8.6/darwin-thread-multi-2level/Tk.pm line 250. > > System information: > > perl v5.8.6 built for darwin-thread-multi-2level > Tk version 804 ( I think Tk-804.028_501) > Darwin new-host.home 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10 > 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 i386 i386 > > - Jack Langsdorf
Yes, -color was documented, but -fill was actually implemented. In future both will be supported, see change 13404 in https://svn.perl.org/modules/Tk/trunk Regards, Slaven