★ wanayoo — archive 1999 http://www.python.org/ftp/python/wpy/Nouvelle recherche | Portail wanayoo

Welcome to the WPY Index

Welcome to the WPY Index. This directory contains WPY for Unix and Windows. WPY is a class library system based on the Microsoft Foundation Classes used for writing GUI code easily in Python. WPY is designed for simplicity and portability. WPY programs run on Unix using Tk, Windows 3.1 (16-bit native) and Windows 95, 98 and NT (32-bit native).  The main page for all Windows Python ports is www.python.org/windows.

Python Libraries

All Python and WPY binaries require the Python libraries. If you do not have the Python libraries, get them from ftp.python.org or www.python.org. Install them in the standard place, or else make sure the PYTHONPATH environment variable points to the directory.  For Windows, you can use the Core Binaries available from www.python.org/windows which includes the Python libraries.  Or see the DOS page.

Tar and Gzip for PCs

Many files from www.python.org end in ".tgz". They are in "tar-gzip" format. If you do not have tar and gzip, and you have a PC running Windows 95 or NT, get tgz.zip to uncompress and unpack these files.

WPY Ports

These WPY ports will enable you to run Python programs with windowing GUI capability. Currently the "standard" GUI model for Python is Tk.  This model runs on Windows using the Windows version of Tk.  Another Python GUI for Windows NT is PythonWin written by Mark Hammond. And wxWindows/wxPython is also available and runs on multiple systems.

For Windows 95 and Windows NT, get the installation program  wpysetup.exe and run it to install WPY.  You will also need the Microsoft runtime DLL's.  Get these by installing PythonWin from www.python.org/windows.

For Windows 3.1, get the installation program  wpyset31.exe and run it to install WPY.  There are no Microsoft DLL's required.

For Unix get wpysetup.exe and put the WPY files wpy.py, wpy_tk.py, wpy_tk.dfl, wpycon.py and wpyinter.py on your PYTHONPATH.  You must have a Python with Tk built in.

If you distribute Python programs, you may want to put the required Python libraries into a DLL so that the Python libraries do not need to be installed on the target system.  The directions for doing so are in freeze.txt.

Get wpypcsrc.tgz if you want source code.

PC Python Binaries

Standard ports of Python for DOS (32-bit), Windows 3.1 and OS/2 are here.

Netscape Plugin

The Python/WPY Netscape plugin DLL supports the Netscape plugin API, and enables you to write programs which access this API and run in a Netscape window. Get the PC source distribution to build these.

Please direct comments about this page to jim@interet.com