panta
panta

Reputation: 91

Invalid object type `GtkGrid' using Glade + Python

I am trying to make a simple gui for a log parser application Im currently writting and Im having slight trouble using glade to design the whole thing. The script is in python 2.7.3, GTK is installed on the machine.

<object class="GtkGrid" id="grid1">

This is probably causing the trouble, but I am unable to find out why. Parent is a Window. I want to use the grid for relative placement after resizing the window. If I use "layout" or "fixed" elements instead of the grid, everything works, but the placement of each element would be more troublesome than while using a grid.

Upvotes: 0

Views: 1435

Answers (1)

liberforce
liberforce

Reputation: 11454

GtkGrid is available since GTK 3, so make sure your application uses GTK 3 (using PyGObject), and not GTK 2 (using PyGTK).

Here's the official Python GTK+ 3 tutorial.

Upvotes: 4

Related Questions