Scale errors 
Author Message
 Scale errors

This code:

#! /home/steves/bin/perl -w

use strict;
use Tk;

my $main = new MainWindow;
my $var = 0;

my $scale = $main->Scale(
                -variable       => \$var,
                -command        => \&cmd,
                -length         => '2.i',
                -jump           => 1
        )->pack;

MainLoop;

sub cmd {
print "$var\n";

Quote:
}

gives me:

Ambiguous use of length => resolved to "length" => at sl.pl line 12.
unknown option "-jump" at
        /home/steves/bin/Perl5/perl/lib/Tk/Widget.pm line 187.

Why?

Perl is 5.002, TK is b11.02
--
===============================================================================
Steve Schlesinger               619-485-3528                 VoicePlus 440-3528

===============================================================================



Sun, 11 Apr 1999 03:00:00 GMT  
 Scale errors


Quote:

>This code:

>#! /home/steves/bin/perl -w

>use strict;
>use Tk;

>my $main = new MainWindow;
>my $var = 0;

>my $scale = $main->Scale(
>                -variable       => \$var,
>                -command        => \&cmd,
>                -length         => '2.i',
>                -jump           => 1
>        )->pack;

>MainLoop;

>sub cmd {
>print "$var\n";
>}

>gives me:

>Ambiguous use of length => resolved to "length" => at sl.pl line 12.
>unknown option "-jump" at
>    /home/steves/bin/Perl5/perl/lib/Tk/Widget.pm line 187.

>Why?

? (; ?

Quote -length (conflict with builtin length())
What's -jump (no such thing)



Mon, 12 Apr 1999 03:00:00 GMT  
 Scale errors

Quote:

> This code:

> #! /home/steves/bin/perl -w

> use strict;
> use Tk;

> my $main = new MainWindow;
> my $var = 0;

> my $scale = $main->Scale(
>                 -variable       => \$var,
>                 -command        => \&cmd,
>                 -length         => '2.i',
>                 -jump           => 1
>         )->pack;

> MainLoop;

> sub cmd {
> print "$var\n";
> }

> gives me:

> Ambiguous use of length => resolved to "length" => at sl.pl line 12.

length is a perl keyword.

Quote:
> unknown option "-jump" at
>         /home/steves/bin/Perl5/perl/lib/Tk/Widget.pm line 187.

Scale does not have a -jump !


Wed, 14 Apr 1999 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Canvas->Scale and Tk::Scale conflict?

2. perl program to create fonts.scale for X11R5 Type1 font renderer

3. looking for guttman scaling algorithm

4. module naming proposal: Number::Scale

5. Scaling a DNA string

6. Tied hash not scaling - advice?

7. Scaling up sample data in an array of hashes

8. Scale/Mode calculator

9. RESG Event: Large Scale Requirements Analysis, 3 November 2000, UMIST

10. Large-scale file reads/writes and efficiency

11. Disabling a Scale widget

12. unknown warning when setting scale length

 

 
Powered by phpBB® Forum Software