[pygtk] installing on UBUNTU Hardy Heron
randy
dogzilla1000 at gmail.com
Sun Jul 13 03:01:00 WST 2008
I'm trying to install PyGtk on UBUNTU Hardy Heron for development, can't
make it work.
I'm trying to run the demo called base.py:
#!/usr/bin/env python
# example base.py
import sys
sys.path.append("/usr/share/python-support/python-gobject")
import pygtk
pygtk.require('2.0')
import gtk
class Base:
def __init__(self):
self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
self.window.show()
def main(self):
gtk.main()
print __name__
if __name__ == "__main__":
base = Base()
base.main()
Initially, Python couldn't import pygtk. I found it, then just patched
in the sys.path.append for the time being to see what else needed work.
Now, python stops at import gtk, which I discovered isn't installed
anywhere.
What are the steps I need to follow to correctly install PyGtk on
UBUNTU?
More information about the pygtk
mailing list