Skip to main content

This is a Python wrapper for the FLTK

Project description

pyFLTK:

A Python Wrapper for the FLTK library

GOALS:

  • To wrap FLTK1.3 in Python
  • To port all programs in test/ to Python using pyFLTK

If you'd like to help out, I'd suggest using the pyfltk mailing list (at the bottom) to coordinate who's working on what.

  1. This wrapper requires:
  • SWIG 4.1.x
  • Python 3.9 or later
  • Fast Light Toolkit 1.3.9 or later (it will also work with earlier versions)
  1. Restrictions

At present, the Python wrapper has been ported and is stable. A preliminary release of flconvert is available but work on it has stopped.

  1. The wrapper is available on PyPi: https://pypi.org/project/pyFltk/

  2. To build the wrappers yourself do the following: (see INSTALL for more details):

    python setup.py swig (not required if you downloaded the _WithSwig source)

    python setup.py build

    python setup.py install

    You might have to edit setup.py to fit your platform.

  3. Do the following to run some tests:

    cd fltk/test

    python hello.py or python3 hello.py (depending on your platform)

  • ./test contains demo programs from the FLTK distribution reimplemented in Python.
  • You can run ./test/demos.py for a little menu of the demos

On the web:

pyFLTK home page: http://pyfltk.sourceforge.io

License:

pyFLTK Copyright (C) 2003-2021 Andreas Held and others licensed under the GNU Library General Public License, version 2.0, June 1991

This library is free software you can redistribute it and/or modify it under the terms of the GNU Library General Public License, version 2.0 as published by the Free Software Foundation.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.

You should have received a copy of the GNU Library General Public License along with this library if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.

Leads:

Andreas Held andreasheld[at]users.sourceforge.net

Robert Arkiletian

Mailing List:

http://lists.sourceforge.net/lists/listinfo/pyfltk-user

Thanks:

Especial thanks to Kevin Dalhausen, the originator of pyFLTK. He did such a good job, the rest was easy.

Many thanks to the creators of fltk (www.fltk.org), the best, fastest and lightest toolkit there is!

Finally, not to forget the creators of SWIG (www.swig.org) a unique tool for doing what we've done here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyFltk-1.3.9.tar.gz (587.5 kB view hashes)

Uploaded Source

Built Distributions

pyFltk-1.3.9-cp312-cp312-win_amd64.whl (2.2 MB view hashes)

Uploaded CPython 3.12 Windows x86-64

pyFltk-1.3.9-cp311-cp311-win_amd64.whl (2.2 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

pyFltk-1.3.9-cp39-cp39-macosx_11_0_universal2.whl (1.9 MB view hashes)

Uploaded CPython 3.9 macOS 11.0+ universal2 (ARM64, x86-64)

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page