That does get me a little further, but now it still fails on the last line:
my $l = new Gtk::Label( "Success" ); my $colormap = $l->get_colormap(); my $gdk_color = Gtk::Gdk::Color->parse_color( "green" ); $gdk_color = $colormap->color_alloc( $gdk_color ); $l->window->set_background( $gdk_color );
$l->window is undefined, so can't do a set_background on it, and $l->set_background doesn't appear to exist either.
In reply to Re^4: Perl::Gtk and Color tutorial
by Crackers2
in thread Perl::Gtk and Color tutorial
by Crackers2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |