GtkColorSelectButton(3pm)

GtkColorSelectButton3pm

Choose a color

Usage

    use 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

Overview

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.

Author

Dov Grobgeld <[email protected]>, with modifications by Kenneth Albanowski <[email protected]>.

From libgnome-perl 0.3-3 in Debian 2.1 (Slink). Also shipped by libgtk-imlib-perl, libgtk-perl. Parsed by carta from the page's man source.