1
votes

The only tutorials I can seem to find are about glade's interface itself. I'm trying to figure out how to import the .glade file into python to add functionality. The tutorials that did manage to show source file provided no info on how they got the .glade file into the IDE. I'm currently using Pycharm 5 with python 3.4. I've tried adding the .glade file to my project file as a .py file but the source code looks very strange, almost like html. I am using glade 3.18. Help please?

1

1 Answers

2
votes

I've tried adding the .glade file to my project file as a .py file but the source code looks very strange, almost like html.

Yes it is just XML that describes the UI.

Here is a decent guide on how to load it from Python and use it - https://python-gtk-3-tutorial.readthedocs.org/en/latest/builder.html