How read glade file to gtk2?



Hi,
       is there error in below code? it throw

Unhandled tag: 'requires' at test2.pl line 6.


use Gtk2 -init;



my $builder = Gtk2::Builder->new();
$builder->add_from_file("3.glade");
#$builder->connect_signals();
my $object = $builder->get_object("window1");
$object->show_all();
gtk_main();

Thanks.



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