[Glade-users] XML to perl
- From: dkasak at nusconsulting.com.au (Daniel Kasak)
- Subject: [Glade-users] XML to perl
- Date: Sun Mar 26 16:37:08 2006
Jos? Luis Regalado wrote:
Greetings.
law the tutorials and has gone to me very well. but, i need know how to:
pass "XML" .glade files to "PERL" .pl files.
I used this script:
use Gtk2 -init;
use Gtk2::GladeXML;
$my_window =
Gtk2::GladeXML->new("path/to/glade/files/some_glade_file.glade")
);
$window->signal_autoconnect_from_package;
Gtk2->main;
That's how it's done :)
Its nice. But is possible to pass .glade to .pl? without this script.
?
... a question: Its better execute this escript[1] or pass .glade to .pl?
[1] executing directly from XML file
Unfortunately I don't really understand the rest of your question. But
anyway, there is no other way to get Perl to construct your GUI from a
Glade XML file. There are other ways of storing the Glade XML file ( ie
inside the Perl script ), but if you do this, it will be difficult to
edit your GUI ( you'll have to separate it from your Perl code before
using Glade ).
Why are you looking for another way?
For Gtk2-Perl stuff, also check out the mailing list:
gtk-perl-list gnome org ... you can sign up at:
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
Dan
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: dkasak nusconsulting com au
website: http://www.nusconsulting.com.au
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]