|
|

|
Prerequisites
|
|
Like any other complex piece of software, wxPython requires other software in order to function properly. Obviously you'll need Python itself, but if you're reading this you've probably already got Python and are just here looking for the best GUI toolkit available for Python. Check out the details for your platform of choice here:
Win32
- If you have a modern up to date version of Windows and use the binary installer for wxPython found below, you probably don't need anything else.
- If your tree controls have strange background colors, try loading this MS Common Controls Update as wxWidgets does something that causes a bug in one of the older versions to manifest itself. Another way to get this update is to install Internet Explorer or MS Office apps, so if the system has those already then you probably don't need to worry about this.
- wxPython's wx.glcanvas.GLCanvas class only provides the GL Context and a wx.Window to put it in, so if you want to use the wxGLCanvas you will also need the PyOpenGL Python extension modules as well.
- Windows 95 users will probably also need the following items to update their systems:
Linux/Unix/Etc.
Mac OS X
- wxPython needs a special Mac OS X-specific build of Python, called a Framework build, in order to work. Panther and Tiger include a Framework build of Python 2.3, or you can get a newer version of Python the Python Framework from the Python site.
- Note to Fink users: Versions of Python installed by Fink or other unix-like package repositories cannot run wxPython (unless you install and run X11 and use a wxGTK version of wxPython...). You need to use Apple's Framework builds, or a third-party Framework build to be able to have a native Aqua GUI.
|
Prebuilt Binaries
NOTE: The links below are for the binaries and source for wxPython 2.8.10.1. The download page for the previous stable release series is here. Other prior versions (stable or development) are available directly from SourceForge.
NOTE 2: wxPython now supports having more than one wxPython runtime installed at the same time, and provides a mechanism for choosing a non-default version at runtime if the app needs to. Please read MultiVersionInstalls for all the gory details.
|
Microsoft Windows
The Win32 version of wxPython is distributed as a set of standard self-installing executables. This allows you the convenience of using the Start Menu and Add/Remove Programs just like any other Windows software.
There are two versions of wxPython for each of the supported Python versions on Win32. They are nearly identical, except one of them has been compiled with support for the Unicode version of the platform APIs. Unless you've been told differently, you probably want to get the Unicode build of wxPython. Although they are not nativly Unicode like NT-based systems, the Unicode build of wxPython will also mostly work on Windows 98/Me systems using a Microsoft hack called MSLU (or unicows.dll) that translates unicode API calls to ansi API calls. However the coverage of the API is not complete so there are some difficult bugs lurking in there, so the best thing to do is to upgrade your machines if possible, otherwise Windows 98/Me users may want to try the ANSI build instead.
| |
Python 2.4 |
Python 2.5 |
Python 2.6 |
wxPython runtime
Install one or more of these. They each contain:
- The wxPython extension modules and proxy class modules
- wxPython library
- Command-line scripts for some wxPython tools
|
win32-unicode
win32-ansi
|
win32-unicode
win32-ansi
win64-unicode
|
win32-unicode
win32-ansi
win64-unicode
|
Docs, Demo, Samples, etc.
This is optional, but highly recommended for developers. This package is usable with any version of the wxPython runtime, and will use the default version if more than one is installed. It contains:
- The wxPython demo
- Several small sample apps
- Start Menu launchers for the demo and tools such as PyCrust and XRCed
- The wxWidgets documentaion, in a MS HTMLHelp file
|
win32-docs-demos |
If you have a need to compile other Python extension modules or applications that link with the same version of the wxWidgets DLL that wxPython does, then you will want to get the development package. It includes a snapshot of the wx headers and the import libraries found on my system when I made the wxPython binaries.
|
Mac OS X
The Max OSX version of wxPython is distributed as a set of mountable disk images. The runtime verisons contain Installer packages, as well as a script that can perform an uninstall of previous installs of wxPython. (NOTE: If you have versions prior to 2.5.3.1 installed please do run the uninstaller to remove the older version.)
Not sure if you should use the ANSI or Unicode version? Read here for more info.
Got an Intel Mac? All of the wxPython builds for OS X are now Universal Binaries, and will work on OS X 10.3.9 or 10.4.x, PPC or Intel.
OS X Binaries
| |
Python 2.4 |
Python 2.5 |
Python 2.6 |
wxPython runtime
Install one or more of these. They each contain:
- The wxPython extension modules and proxy class modules
- wxPython library
- Command-line scripts for some wxPython tools
|
osx-unicode
osx-ansi
|
osx-unicode
osx-ansi
|
osx-unicode
osx-ansi
|
Docs, Demo, Samples, etc.
This is optional, but highly recommended for developers. This package is usable with any version of the wxPython runtime, and will use the default version if more than one is installed. It contains:
- The wxPython demo
- Several small sample apps
- App bundles for PyCrust and XRCed
- The wxWidgets documentaion, bundled in a viewer application
|
osx-docs-demos
|
osx-docs-demos
|
osx-docs-demos
|
Debian/Ubuntu
There are wxWidgets and wxPython packages in the standard software repositories for Debian and Ubuntu, but they are usually at least a few releases behind the current release, and in some cases many releases behind. Using your favorite package management tool look for packages named python-wxgtkX.Y where X.Y is the major version numbers for the release series.
There is also a package repository maintained by the wxWidgets team that will always have up to date pacakges for wxWidgets and wxPython for various Debian and Ubuntu releases. There are instructions for accessing this repository on the wiki.
You can also do it the old way from the source RPM using alien, as described here, although I'm not sure there is any need to do it that way any more.
|
Documentation
This is the wxWidgets/wxPython documentation, in HTML format. For other documentaion options see the wxWidgets site.
Thre is an effort underway to create a Python-specific set of reference docs for wxPython. While much of the content is not yet present, the docs are still usable, and in fact helpful since they already accurately document what classes and methods are present in wxPython and what the parameter names are. A downloadable archive of the new docs is now made as part of the release builds, and it can also be accessed online here.
|
Demo and Sample Apps
Since the RPMs no longer include the demo or samples, it is now packaged separately. Why did I do this? Well the demo is intended to be a learning tool, but when installed from the RPM all the demo files are owned by root. As a separate tarball you can put the files where ever you want and since they'll be owned by you when you untar them you can play and tweak to your heart's desire.
|
|
|