Gtk2::GladeXML... Don't seem window...
- From: Simon Péter <simon peter gprsec hu>
- To: gtk-perl-list gnome org
- Subject: Gtk2::GladeXML... Don't seem window...
- Date: Thu, 9 Nov 2006 11:07:36 +0100
Hi All,
I just try at first time to use glade3 to design my Perl Gtk2 application. I
generated a simply window using glade3 and tried to start it from a Perl
code.
I tried this:
_______
#!/usr/bin/perl -w
use Gtk2 '-init';
use Gtk2::GladeXML;
my $main_window = Gtk2::GladeXML->new('./3.glade');
Gtk2->main;
______
This is the 3.glade:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
<!--Generated with glade3 3.0.2 on Thu Nov 9 10:58:44 2006 by
don AMD-laptop-->
<glade-interface>
<widget class="GtkWindow" id="window1">
<child>
<widget class="GtkVBox" id="vbox1">
<property name="visible">True</property>
<child>
<widget class="GtkColorSelection" id="colorselection1">
<property name="visible">True</property>
</widget>
</child>
</widget>
</child>
</widget>
</glade-interface>
When I start: nothing happens... No Perl errors, only no prompt just using
ctrl+c.
What's wrong?
Thanks.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]