Python wrapper for the Fast Light Toolkit pyFLTK

SourceRPILinuxMacosWindows

Installation:

Windows

Windows install

Preferred install method is to use pip to install pyFltk from PyPi

First install Python

  1. Note which versions of Python have prebuilt wheel packages on PyPI
  2. Download a supported version of 64-bit Python installer for Windows from https://www.python.org/downloads/windows/
  3. After downloading Python, right click the .exe file and choose Run as Administrator
  4. Check the Add Python to PATH box
  5. Click Custom Installation
  6. Click Install for all users

Next install pyFltk

  1. Open a command prompt (search "cmd") or Powershell
  2. Type the command: pip install pyfltk

As a convenience we have also provided the wheel files on Sourceforge

MacOS

These instructions have been tested on both Apple Intel 64bit cpus and Apple Silicon Mx cpus.

  1. Goto the Brew.sh website and follow instructions to install the Homebrew package manager
  2. Note which versions of Python have prebuilt wheel packages on PyPI
  3. Download and install a supported version of Python for macOS
  4. https://www.python.org/downloads/macos/
  5. Install C++ FLTK 1.4, in a terminal run the command brew install fltk
  6. Install pyFltk, in a terminal run the command pip3 install pyfltk

Linux

Installing on Ubuntu/Debian Linux using apt package manager

For Debian 12 or Ubuntu 22.04 or Ubuntu 24.10 run the command:

  1. sudo apt install python3-fltk

Building pyFltk from latest source code:

  1. svn checkout https://svn.code.sf.net/p/pyfltk/code/trunk pyfltk-code
  2. cd pyfltk-code/pyfltk/
  3. Follow instructions in the INSTALL file