Tk::ColorEntry - Entry widget with a Tk::PopColor widget attached.
use Tk::ColorEntry; my $entry = $window->ColorEntry->pack;
Megawidget, inherits Tk::Frame Tk::ColorEntry is an entry widget with a label packed to it's right. The background color of the label is used as indicator for the current color. Clicking the entry widget pops a Tk::ColorPop widget.
Pressing escape causes the ColorPop to widthdraw. If a pick operation is active cancels the pick operation instead.
Callback to be executed when a color is selected. The color is given as parameter.
Default value '#FF0000'. Foreground color of the entry when it's content is not a valid color.
Default value 2. Borderwidth of the indicator label.
Default value 4. Width of the indicator label.
Default value 'sunken'. Relief of the indicator label.
Default value 1. Borderwidth of the ColorPop widget.
Default value 'raised'. Relief of the ColorPop widget.
Reference to the variable where the current value is held.
Returns the contents of the entry widget if it is a valid color.
$color becomes the content of the entry widget. Adjusts the sliders if $color is a valid color.
Same as Perl.
Hans Jeuken (hanje at cpan dot org)
Unknown. If you find any, please contact the author.
To install Tk::ColorEntry, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tk::ColorEntry
CPAN shell
perl -MCPAN -e shell install Tk::ColorEntry
For more information on module installation, please visit the detailed CPAN module installation guide.