home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / share / doc / python-gtk2 / README < prev    next >
Encoding:
Text File  |  2006-08-08  |  3.7 KB  |  122 lines

  1. PyGTK
  2. =====
  3. Original author: James Henstridge <james@daa.com.au>
  4. Current maintainer: Johan Dahlin <johan@gnome.org>
  5.  
  6. This archive contains modules that allow you to use gtk in Python
  7. programs.  At present, it is a fairly complete set of bindings.
  8. Despite the low version number, this piece of software is quite
  9. useful, and is usable to write moderately complex programs.  (see the
  10. examples directory for some examples of the simpler programs you could
  11. write).
  12.  
  13. If you have any enhancements or bug reports, please file them in
  14. bugzilla at:
  15.   http://bugzilla.gnome.org/enter_bug.cgi?product=pygtk
  16.  
  17. If you have a patch, file the bug first and then use the "create new
  18. attachment" link on the bug's info page.  My preferred format for
  19. patches is unified diff format (ie. diff -u).  Please don't send me
  20. diffs which don't have any context, as these make it very difficult to
  21. see what the patch does.
  22.  
  23. What's new in PyGTK 2.10
  24. ========================
  25.  
  26. See the wiki page for an overview of the features in PyGTK 2.10:
  27.  
  28. http://live.gnome.org/PyGTK/WhatsNew210
  29.  
  30. New Versions
  31. ============
  32.  
  33. New versions of this package can be found at:
  34.   http://ftp.gnome.org/pub/GNOME/sources/pygtk/
  35.  
  36.  
  37. Mailing list
  38. ============
  39.  
  40. There is a mailing list for pygtk.  You can subscribe to it through
  41. the web interface:
  42.   http://www.daa.com.au/mailman/listinfo/pygtk
  43.  
  44.  
  45. Requirements
  46. ============
  47.   * C compiler (GCC and MSVC supported)
  48.   * Python 2.3.5 or higher
  49.   * PyGObject 2.11.2 or higher
  50.   * Glib 2.8.0 or higher
  51.   * Gtk+ 2.8.0 or higher (optional)
  52.   * libglade 2.5.0 or higher (optional)
  53.   * pycairo 0.5.0 or higher (optional)
  54.   * Numeric (optional)
  55.  
  56. Copyright Information
  57. =====================
  58.  
  59. This software is covered by the GNU Lesser General Public Licence
  60. (version 2.1, or if you choose, a later version).  Basically just don't
  61. say you wrote bits you didn't.
  62.  
  63. Compilation
  64. ===========
  65.  
  66. PyGTK uses the standard autotools for the build infrastructure.  To
  67. build, it should be as simple as running:
  68.  
  69.     $ ./configure --prefix=<prefix where python is installed>
  70.     $ make
  71.     $ make install
  72.  
  73. If your Python interpreter isn't in the path, or is not called
  74. "python", you can set the PYTHON environment variable to the full path
  75. of the interpreter:
  76.  
  77.     $ PYTHON=/prefix/bin/python
  78.     $ export PYTHON
  79.  
  80. If configure can't find GTK+, you may need to set the PKG_CONFIG_PATH
  81. environment variable to help it find the libraries.
  82.  
  83. The "make install" target will generate normal and optimised bytecode
  84. for all the .py files.
  85.  
  86. Note. If you're installing to another prefix than the one where python
  87. is installed you'll need to set the PYTHONPATH variable to the
  88. $prefix/lib/pythonX.Y/site-packages directory created by
  89. the PyGTK installation.
  90.  
  91. Upgrading from 0.6.x
  92. ====================
  93.  
  94. The API has changed a fair bit compared to the 0.6.x releases of pygtk
  95. in response to feedback from the mailing list.  The main changes are:
  96.   - no low level procedural interface.  The extension now implements
  97.     the object oriented API directly, rather than layering it on top
  98.     of a procedural API.
  99.   - class names have been shortened.  Eg. instead of gtk.GtkWindow, we
  100.     now have gtk.Window.
  101.   - GDK classes and functions have been moved to the "gtk.gdk" module.
  102.   - the GTK and GDK modules have been removed, with their constants
  103.     being moved into the "gtk" and "gtk.gdk" modules.
  104.  
  105.  
  106. Tests
  107. =====
  108.  
  109. After having compiled and installed pygtk, you may want to test them.
  110. There are a number of example programs available in the examples/
  111. subdirectory.
  112.  
  113.  
  114. Getting Help
  115. ============
  116.  
  117. If you have questions about programming with PyGTK, you might want to
  118. send a message to the mailing list (information on subscribing is
  119. above).  Alternatively, your question may be answered in the FAQ:
  120.  
  121.     http://www.async.com.br/faq/pygtk/?req=index
  122.