ImpulseAdventure / GUIslice

GUIslice drag & drop embedded GUI in C for touchscreen TFT on Arduino, Raspberry Pi, ARM, ESP8266 / ESP32 / M5stack using Adafruit-GFX / TFT_eSPI / UTFT / SDL
https://www.impulseadventure.com/elec/guislice-gui.html
MIT License
1.12k stars 206 forks source link

Python Interface #100

Open dgoadby opened 5 years ago

dgoadby commented 5 years ago

I am a big Python user. I am looking to create a Python wrapper for the GUIslice. Initially I will do this for the Raspberry Pi running Debian. Creating a universal solution for all types of displays and platforms will be the real test but, for now, there are a lot of RPi's out there running Python so it is a good first choice.

I have just cloned the repository and will add a python folder to my copy. The tool of choice is Cython as it seems to work well across platforms.

Once there is something that will run then I will issue a pull request and, if Cal agrees, it will be part of this repo. I might do a fork but, for now, I am doing a few tests to see how viable the project is.

For it to be a success the Python coding needs to be as easy as importing GUIslice, creating an object and then making the calls with appropriate arguments. This is the Python way...

If there are any suggestions/requests while I am doing the preliminary work then I am happy to take them.

ImpulseAdventure commented 5 years ago

Thank you very much David for exploring this enhancement! It would be fantastic if one could find a way to create a python wrapper for GUIslice as there has definitely been interest in the past. I agree that RPi would be the ideal platform for feasibility since it uses a much simpler configuration / dependencies. Debian should be fine as I presume it would be a close enough proxy to the common Raspbian distribution.