Jerome Quelin > Tk-RotatingGauge-0.25 > Tk::RotatingGauge

Download:
Tk-RotatingGauge-0.25.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.25   Source  

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

-orient

See Tk::options for details of the standard options.

WIDGET OPTIONS ^

-box

Specifies the color of the lines boxing the gauge. If set to none, then no box will be drawn. Default to black.

-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.

-indicator

Specifies the color of the central indicator. If set to none, then no central indicator will be drawn. Default to red.

-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.