randy wrote:
> 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?
> 

I am using 8.04 Hardy Heron, worked out of the box for me.



_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to