in reply to How to access options to Tk widgets
When invoked this way, I get the unreferenced value error. However, if I do the following:#! Perl script use strict; use warnings; use Tk; use SR::Dtest; my $main = MainWindow->new; $main->Dtest; #$main->pack(); MainLoop;
... I get the desired result (a label with the string "var=5"). According to Tk::configSpecs, the format is:$main->Dtest(-target=>5);
Why isn't ConfigSpecs assigning a default value of 4 to -target?configSpecs(-option => [where,dbName,dbClass,default])
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How to access options to Tk widgets
by Spookymonster (Initiate) on May 10, 2002 at 17:38 UTC |