| 1 | pyFLTK: |
| 2 | ======= |
| 3 | |
| 4 | A Python Wrapper for the FLTK library |
| 5 | ------------------------------------- |
| 6 | |
| 7 | GOALS: |
| 8 | |
| 9 | * To wrap FLTK1.4 in Python |
| 10 | * To port all programs in test/ to Python using pyFLTK |
| 11 | |
| 12 | |
| 13 | If you'd like to help out, I'd suggest using the pyfltk mailing list |
| 14 | (at the bottom) to coordinate who's working on what. |
| 15 | |
| 16 | 1) This wrapper requires: |
| 17 | |
| 18 | * SWIG 4.0 or later |
| 19 | * Python 3.11 or later |
| 20 | * Fast Light Toolkit 1.4 or later |
| 21 | |
| 22 | 2) Restrictions |
| 23 | |
| 24 | At present, the Python wrapper has been ported and is quite stable. You might encounter certain parts that are not yet or only partailly wrapped. |
| 25 | |
| 26 | |
| 27 | |
| 28 | 3) The wrapper is available on PyPi: https://pypi.org/project/pyfltk/ |
| 29 | |
| 30 | 4) see INSTALL file for instructions how to build or install the Python wrapper of FLTK |
| 31 | |
| 32 | 5) Do the following to run some tests: |
| 33 | |
| 34 | cd fltk/test |
| 35 | |
| 36 | python hello.py |
| 37 | or |
| 38 | python3 hello.py (depending on your platform) |
| 39 | |
| 40 | |
| 41 | * ./test contains demo programs from the FLTK distribution reimplemented |
| 42 | in Python. |
| 43 | * You can run ./test/demos.py for a little |
| 44 | menu of the demos |
| 45 | |
| 46 | |
| 47 | |
| 48 | ### On the web: |
| 49 | |
| 50 | pyFLTK home page: http://pyfltk.sourceforge.io |
| 51 | |
| 52 | |
| 53 | ### License: |
| 54 | |
| 55 | pyFLTK Copyright (C) 2003-2025 Andreas Held and others licensed under the |
| 56 | GNU Library General Public License, version 2.0, June 1991 |
| 57 | |
| 58 | This library is free software you can redistribute it and/or |
| 59 | modify it under the terms of the GNU Library General Public |
| 60 | License, version 2.0 as published by the Free Software Foundation. |
| 61 | |
| 62 | This library is distributed in the hope that it will be useful, |
| 63 | but WITHOUT ANY WARRANTY without even the implied warranty of |
| 64 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 65 | Library General Public License for more details. |
| 66 | |
| 67 | You should have received a copy of the GNU Library General Public |
| 68 | License along with this library if not, write to the Free Software |
| 69 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
| 70 | USA. |
| 71 | |
| 72 | |
| 73 | ### Leads: |
| 74 | |
| 75 | Andreas Held andreasheld[at]users.sourceforge.net |
| 76 | |
| 77 | Robert Arkiletian |
| 78 | |
| 79 | |
| 80 | |
| 81 | ### Mailing List: |
| 82 | |
| 83 | http://lists.sourceforge.net/lists/listinfo/pyfltk-user |
| 84 | |
| 85 | |
| 86 | ### Thanks: |
| 87 | |
| 88 | Especial thanks to Kevin Dalhausen, the originator of pyFLTK. He did |
| 89 | such a good job, the rest was easy. |
| 90 | |
| 91 | Many thanks to the creators of fltk (www.fltk.org), the best, fastest |
| 92 | and lightest toolkit there is! |
| 93 | |
| 94 | Finally, not to forget the creators of SWIG (www.swig.org) a unique |
| 95 | tool for doing what we've done here. |
| 96 | |
| 97 | |
| 98 | |
| 99 | |
| 100 | |
| 101 | |
| 102 | |
| 103 | |
| 104 | |
| 105 | |
| 106 | |
| 107 |