jethro10
July 20th, 2006, 11:43 AM
Hi,
I am really new to glade/python so bear with me.
It was working with a small demo program I downloaded and something i've done must have broke it.
Is this bit of code at the top of my file legitimate ?
[CODE]
import sys
try:
import pygtk
pygtk.require("2.0")
except:
sys.exit(1)
try:
import gtk
except:
sys.exit(2)
try:
import gtk.glade
except:
sys.exit(3)
[END CODE]
It's chopped around from the original but i've discovered if I do the above I get a system exit (2) error
Is this telling me gtk is not loading right?
If so it's a step in the right direction.
Jeff
[EDIT]
THe code is correctly indented, just does not display here
[END EDIT]
I am really new to glade/python so bear with me.
It was working with a small demo program I downloaded and something i've done must have broke it.
Is this bit of code at the top of my file legitimate ?
[CODE]
import sys
try:
import pygtk
pygtk.require("2.0")
except:
sys.exit(1)
try:
import gtk
except:
sys.exit(2)
try:
import gtk.glade
except:
sys.exit(3)
[END CODE]
It's chopped around from the original but i've discovered if I do the above I get a system exit (2) error
Is this telling me gtk is not loading right?
If so it's a step in the right direction.
Jeff
[EDIT]
THe code is correctly indented, just does not display here
[END EDIT]