turn (almost) any python functions into a gui in a few lines of code
Project description
PyGUIAdapter
A GUI adapter for python functions.
It is used to make gui for almost any python functions in just a few lines.
Turn your function(s) into gui is easy:
- Import GUIAdapter from pyguiadapter.adapter package
- Write your functions
- Create an instance of GUIAdapter
- Add your function(s) to the instance
- Invoke run() method of the instance
Simple example:
from pyguiadapter.adapter import GUIAdapter
def user_function(a: int, b: int) -> int:
"""This is a user function."""
return a + b
gui_adapter = GUIAdapter()
gui_adapter.add(user_function)
gui_adapter.run()
Check examples/
for more examples.
Check screenshots/
for the screenshot of the examples.
Current Status
I spent almost a week of my spare time to create this library.
The code is not that fancy but it works.
A lot of work is still to be done, including:
- a stable api
- i18n
- more tests
- more examples
- more widget types
- documentation
- and so on
Any help and suggestions are welcomed
Underlying...
GUIAdapter is built on top of function2widgets
(also my own library which is based on PyQt6).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyguiadapter-0.1.10.tar.gz
(67.1 kB
view hashes)
Built Distribution
pyguiadapter-0.1.10-py3-none-any.whl
(154.7 kB
view hashes)
Close
Hashes for pyguiadapter-0.1.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c481432454cd8c20461cf45296463887a244bd2b028c698d13b077673f9b73a |
|
MD5 | 4dc7c245932035de672ef2d3ff1fa2ad |
|
BLAKE2b-256 | 68629fd303a36d7dc33ec648801dc42877c01ef308cd0734bcd5e25dc5772627 |