I'm trying to design some window in glade, and I want it to use in my python code using GtkBuilder
I just somehow can't generate GtkBuilder xml
When I save something in Glade I get .glade file
Can you please help me how can I generate GtkBuilder xml?
$ rpm -q glade3
glade3-3.10.0-2.fc15.x86_64
Thank you
I have tried the following on Ubuntu 10.04 but I guess it should work on your system as well. If you are using glade-3
when you are saving the file, select Save As... option instead of Save, you will prompted to enter the file name with file browser displayed. Here in the bottom left corner you can see selection options for file format like:
File Formats
() GtkBuilder
() Libglade
(sorry cant upload image ): )
Select GtkBuilder option and save as the filename.xml of your choice. That should do it!
To cross check if the generated file is .glade file or GtkBuilder compatible XML file (as both are in XML format) root node in .glade file will be glade-interface
whereas in GtkBuilder compatible XML file it will be interface
If you have an existing .glade file you can look into gtk-builder-convert script to convert to GtkBuilder compatible XML file.
Hope this helps!