The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Tk::RotatingGauge - a rotating gauge for Tk

SYNOPSIS

    use Tk::RotatingGauge;

    my $g = $parent->RotatingGauge( @options );
    $g->value(10.5);

DESCRIPTION

This perl module provides a new Tk widget representing a gauge where the current value always stays at the same place. Think about your old mileage counters...

STANDARD OPTIONS

-background

WIDGET OPTIONS

-from

A real value corresponding to the minimum end of the gauge. Default to 0.

-height

Specifies a desired window height that the widget should request from its geometry manager.

-policy

Define the rotating policy: if set to rotate (default), then out of bounds values will be mod-ed to fit in the wanted scale. If set to strict, values can't go lower than -from or higher than to.

-top

A real value corresponding to the maximum end of the gauge. Default to 100.

-value

The initial value to be shown. Default to 50.

-visible

The number of values to be displayed. Default to 20.

-width

Specifies a desired window width that the widget should request from its geometry manager.

METHODS

$gauge->value($val)

Sets the value that the gauge should indicate.

BUGS

Please report any bugs or feature requests to < bug-tk-rotatinggauge at rt.cpan.org>, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Tk-RotatingGauge. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SEE ALSO

Tk::RotatingGauge development takes place on http://tk-rotatinggauge.googlecode.com - feel free to join us.

You can also look for information on this module at:

AUTHOR

Jerome Quelin, <jquelin at cpan.org>

COPYRIGHT & LICENSE

Copyright (c) 2007 Jerome Quelin, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.