Popcorn Dave has asked for the wisdom of the Perl Monks concerning the following question:
I've run into a wall again with my Tk programming.
Given the following code:
my $canvas = $frame2 ->Canvas( -bg=>COLOR, -height=>$height, -width=>$width, )->pack();
I've set $height and $width prior to it ever seeing that, so why does that keep giving me this error:
Arg 5 to `.frame1.canvas' (300) is tainted at C:/Perl/site/lib/Tk/Widget.pm line 196.
If I go in and physically set the canvas dimension, it all works just fine, but I want to have a dynamic canvas - if possible.
Any help would be appreciated!
Edit ar0n -- title change
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Another day, another Tk question
by samtregar (Abbot) on Apr 29, 2002 at 21:46 UTC | |
by Popcorn Dave (Abbot) on Apr 29, 2002 at 22:13 UTC | |
by IlyaM (Parson) on Apr 29, 2002 at 22:41 UTC | |
by samtregar (Abbot) on Apr 29, 2002 at 22:37 UTC | |
|
Re: Another day, another Tk question
by Popcorn Dave (Abbot) on Apr 29, 2002 at 23:27 UTC |