Tk::LogScale - A logarithmic Scale widget
use Tk::LogScale; $scale = $mw->LogScale(...);
This is a Scale widget which uses a logarithmic scale for the position of the thumb.
Tk::LogScale roughly uses the same options as in Tk::Scale. The -digits option is not implemented. For the -bigincrement and -resolution, translated values have to be used. The -variable option can only be used if the Tie::Watch module is installed (Note: Tie::Watch is in the Perl/Tk distribution since 800.022).
Tie::Watch
The following options are new to Tk::LogScale:
Function to translate from real values to internal scale values. By default this is the log function. If you want the 10-log, you can set this option to sub { log($_[0])/log(10) }
This should be the inverse function of -func. By default this is the exp function. For 10-log, use sub { 10**$_[0] }
Callback to format the value for -showvalue. The default is to show integer values.
The scale widget.
A dummy placeholder for the showvalue area.
A label holding the current value of the scale. This one is placed over/left to the thumb of the scale.
Multiple ties of the same variable specified in -variable will lead to unpredictable results.
There are still some unimplemented options.
The correct implementation of the -bigincrement, -resolution and -tickinterval options is unclear.
Slaven Rezic <slaven@rezic.de>
Tk::Scale, Tie::Watch.
To install Tk::LogScale, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tk::LogScale
CPAN shell
perl -MCPAN -e shell install Tk::LogScale
For more information on module installation, please visit the detailed CPAN module installation guide.