Differences between revisions 3 and 4
Revision 3 as of 2008-11-15 14:00:13
Size: 452
Editor: localhost
Comment: converted to 1.6 markup
Revision 4 as of 2009-01-25 22:23:29
Size: 1728
Editor: ool-4356421f
Comment: beefed this page up a bit
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
'''pyFLTK''' is a Python wrapper for the '''FLTK''' GUI toolkit.
'''pyFLTK''' is a lightweight multi-platform
GUI library that runs on Windows, Unix, Linux, and Mac.
pyFLTK is a Python wrapper for the [[FLTK]] GUI toolkit. It utilizes SWIG and wraps the current stable version of FLTK.
Line 7: Line 5:
Features:
 * Small footprint
 * Cross platform development
 * Easy to learn
 * Fast
== Install tips ==
Line 13: Line 7:
Links for downloading and more information can be found on the '''pyFLTK''' home page at
http://pyfltk.sourceforge.net.
These notes assume you're using Ubuntu GNU/Linux, your system Python (the one installed in `/usr/bin`), and your system OpenGL libraries. And that you'll be ''manually'' installing FLTK and pyFLTK.

=== OpenGL ===

Before installing FLTK, be sure you have OpenGL and its development libraries installed on your system. On Ubuntu 8.10, using a DRI-compatible card, some of these packages are:

{{{
libgl1-mesa-dri libgl1-mesa-dev mesa-common-dev libglu1-mesa libglu1-mesa-dev freeglut3 freeglut3-dev
}}}

`aptitude install` any that you don't already have installed.


=== FLTK ===

The current stable release as of Jan 2009 is 1.1.9. Building and installing (into `/usr/local`) should be a simple matter of running `make` and then `sudo make install`. See its README for more details.

You want to build and install your own because the stock FLTK that's available with Ubuntu 8.10 is not configured to use OpenGL.


=== pyFLTK ===

First make sure you have the Python header files installed (`aptitude install python-dev`). After that, see the instructions in the pyFLTK distribution for instructions, which are basically:

{{{
python setup.py build
sudo python setup.py install
}}}

That installs the relevant python files into into `/usr/lib/python2.5/site-packages`. After installation, you should run the included demos to make sure everything is working right (instructions are in the INSTALL file).


== External Links ==

 * [[http://pyfltk.sourceforge.net/ | pyFLTK]]
Line 16: Line 44:

pyFLTK: Multi Platform GUI Toolkit

pyFLTK is a Python wrapper for the FLTK GUI toolkit. It utilizes SWIG and wraps the current stable version of FLTK.

Install tips

These notes assume you're using Ubuntu GNU/Linux, your system Python (the one installed in /usr/bin), and your system OpenGL libraries. And that you'll be manually installing FLTK and pyFLTK.

OpenGL

Before installing FLTK, be sure you have OpenGL and its development libraries installed on your system. On Ubuntu 8.10, using a DRI-compatible card, some of these packages are:

libgl1-mesa-dri libgl1-mesa-dev mesa-common-dev libglu1-mesa libglu1-mesa-dev freeglut3 freeglut3-dev

aptitude install any that you don't already have installed.

FLTK

The current stable release as of Jan 2009 is 1.1.9. Building and installing (into /usr/local) should be a simple matter of running make and then sudo make install. See its README for more details.

You want to build and install your own because the stock FLTK that's available with Ubuntu 8.10 is not configured to use OpenGL.

pyFLTK

First make sure you have the Python header files installed (aptitude install python-dev). After that, see the instructions in the pyFLTK distribution for instructions, which are basically:

python setup.py build
sudo python setup.py install

That installs the relevant python files into into /usr/lib/python2.5/site-packages. After installation, you should run the included demos to make sure everything is working right (instructions are in the INSTALL file).


CategoryPyGUI

PyFltk (last edited 2014-04-18 05:09:49 by DaleAthanasias)

Unable to edit the page? See the FrontPage for instructions.