Gtk::ColorSelectButton 0.7009 review

Download
by rbytes.net on

Gtk::ColorSelectButton is a Perl module which let's you choose a color. SYNOPSIS use Gtk; use Gtk::ColorSelectButt

License: Perl Artistic License
File size: 436K
Developer: Dov Grobgeld
0 stars award from rbytes.net

Gtk::ColorSelectButton is a Perl module which let's you choose a color.

SYNOPSIS

use Gtk;
use Gtk::ColorSelectButton;

...
init Gtk;
init Gtk::ColorSelectButton;
...

$color_button = Gtk::ColorSelectButton->new();
$hbox->pack_start($color_button, 1,1,0);
$color_button->show();

...
print $color_button->color; #shortcut for ->get('color')
...
$color_button->set( color => "10 40 250" ); # R G B

Gtk::ColorSelectButton shows a button with a uniform color. Pressing this buton pops up the color_selection dialog in which a new color may be chosen. When the color selection dialog is closed, the chosen color is reflected in the color of the button.
The gtk variable color provides a way to access the chosen color.

Requirements:
Perl

Gtk::ColorSelectButton 0.7009 search tags