[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Has any one else seen this problem with python and gnome2-projectsfrom glade?

When i create a gnome2-project in glade and try to load the 
interface with python then i always get the following error and a
segfault. How come? This is Severn packages only. (Well, my python-code,
but it should work. The code i use is below the error.
Loading Gtk+ projects works fine, its gnome2-projects that segfaults.
Not sure if this is the right place to ask this, but since the code
seems to be a "should work" (taken from a tutorial) i thought it might
be a bug in Severns python/gnome packages.  

(The Error message):
[kent Snutten kent]$ ./test.py gnome2.glade

(test.py:5421): GLib-GObject-CRITICAL **: file gobject.c: line 1002
(g_object_get): assertion `G_IS_OBJECT (object)' failed

Here is the code:

#!/usr/bin/env python
import sys
import gtk
import gtk.glade
if len(sys.argv) > 1:
    fname = sys.argv[1]
    fname = 'test.glade'
# create widget tree ...
xml = gtk.glade.XML(fname)
def gtk_main_quit(*args):

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]