>>>>> "GopinathR" == GopinathR  <[EMAIL PROTECTED]> writes:


    GopinathR> Hi, Im a beginner to Python. I wanted to make a GUI in
    GopinathR> Python (TreeView). I have downloaded the pygtk.py 2.0,
    GopinathR> but when I searched for gtk, it was difficult for me to
    GopinathR> find the way to get gtk.py.  Can anyone help me in
    GopinathR> getting gtk.py, so that I can import this in my code
    GopinathR> and start working.

First, what platform are you on?  The install instructions are
platform dependent.

In a nutshell, 

  * If on linux you need a sufficiently recent version that has GTK2
    (eg, redhat 8 or later) and pygtk-2.0.0 from
    ftp://ftp.gtk.org/pub/gtk/python/v2.0/.

  * If on win32, install the GTK runtime (currently version 2.2.4.1)
    http://prdownloads.sourceforge.net/gtk-win and then and the bin
    and lib subdirs of the install path to your PATH.  I usually
    install to C:\GTK and add C:\GTK\lib and C:\GTK\bin to PATH (the
    default install location has spaces in it and spaces are difficult
    to handle correctly in the PATH environment variable).  Then
    install pygtk-2.0.0 from
    http://www.pcpm.ucl.ac.be/~gustin/win32_ports/binaries/pygtk-2.0.0.win32-py2.3.exe


Test you installation with

  >>> import pygtk
  >>> pygtk.require('2.0')
  >>> import gtk

If you can do that, you're off.

JDH
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to