views:

37

answers:

2

Why I get this segmentation fault?:

>>> import gtk
>>> a = gtk.Window()
>>> a.show()
>>> b = gtk.Dialog("hellooo")
>>> b.show()                 # here the dialog appears
>>> b.show()
Segmentation fault
+1  A: 

Did you install from source or using your system's packages? I would recommend a reinstall, using apt-get, yum or similar

Fergus Barker
I haven't install anything. gtk comes with python in ubuntu 10.04 :)
xRobot
+1  A: 

I get a segmentation fault. So don't show() a dialog after it has been shown once. The object has been created and destroyed and you are trying to reuse it. Don't do that. Make a new one. Or: "Doctor, it hurts when I do this..."

hughdbrown