marktani
marktani

Reputation: 7808

Building gtkbuilder file with gtk 3 using python

I am currently following this tutorial. When I run the according python file I get the same issue as here (though I use python, not Vala).

So apparently I have to tell python to use gtk3, but how do I do this?

I am using Ubuntu 12.04, python2.7, glade3.14.

Upvotes: 1

Views: 249

Answers (2)

marktani
marktani

Reputation: 7808

While I don't found the cause of the problem, I got it to work by simply copying the contents of my.glade into another.glade, opened in glade, saved it and run the script on it. I probably made some mistake which I cannot reproduce anymore, oh well.

Thanks though to liberforce, as the tutorial posted gives a better understanding about the "gtk+ side" of the problem, while I only concentrated on glade so far.

Upvotes: 0

liberforce
liberforce

Reputation: 11454

That's strange. You could use GtkHBox or GtkVBox as a workaround. However, these two have been deprecated recently (in GTK 3.2), in favor of GtkGrid. Also, you may want to give a look to the official Python GTK 3 tutorial.

Upvotes: 2

Related Questions