Re: gtk-perl tutorial and help



$button_box  = new Gtk::HBox( $false, 0 );
$style = $window->get_style()->bg( 'normal' );

($pixmap, $mask ) = Gtk::Gdk::Pixmap->create_from_xpm_d(
$window->window,$style,@xpm_data );

'window is not of type Gtk::Gdk::Window '

Greetings Andy, Welcome to the list :-)

I vaugly recall that before you can use these functions you have to
render the window.  I could be wrong, but I seem to recall hitting my
head against the same wall a few years ago.

Try placing a
$window->show;
before you reach that section of code.

Red



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]