Reputation: 26567
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
Upvotes: 0
Views: 951
Reputation: 1760
You are likely running your code outside of a "graphical" environment. ie. one with a valid DISPLAY
environment variable.
Upvotes: 0
Reputation: 49013
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..."
Upvotes: 1
Reputation: 1342
Did you install from source or using your system's packages?
I would recommend a reinstall, using apt-get
, yum
or similar
Upvotes: 1