perltux has asked for the wisdom of the Perl Monks concerning the following question:
With Perl/TK how do i change the inbuilt defaults for the whole script?
For example I want all Scale widgets to have the following settings:
-width => '10', -length => '200', -sliderlength => '16', -orient => 'horizontal', -borderwidth => '1', -cursor => 'hand2', -showvalue => '0'
How can I define that once for the whole script, as opposed to defining it each time I build a new Scale widget?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl/TK: how to set defaults for the whole script?
by choroba (Cardinal) on Oct 24, 2012 at 07:43 UTC | |
by perltux (Monk) on Oct 24, 2012 at 09:08 UTC | |
|
Re: Perl/TK: how to set defaults for the whole script?
by kcott (Archbishop) on Oct 24, 2012 at 08:24 UTC | |
by perltux (Monk) on Oct 24, 2012 at 09:11 UTC | |
|
Re: Perl/TK: how to set defaults for the whole script?
by stefbv (Priest) on Oct 24, 2012 at 07:59 UTC | |
|
Re: Perl/TK: how to set defaults for the whole script?
by AnomalousMonk (Archbishop) on Oct 24, 2012 at 21:04 UTC |