https://github.com/onestraw/base_gui
A wrapper for Tkinter to equip your backend program with GUI easily
https://github.com/onestraw/base_gui
Last synced: 3 months ago
JSON representation
A wrapper for Tkinter to equip your backend program with GUI easily
- Host: GitHub
- URL: https://github.com/onestraw/base_gui
- Owner: onestraw
- Created: 2018-03-28T09:08:25.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-29T08:43:10.000Z (about 8 years ago)
- Last Synced: 2025-12-16T17:49:01.472Z (6 months ago)
- Language: Python
- Homepage: https://pypi.org/project/base-gui/
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Base GUI
A wrapper for Tkinter, it's very simple and helpful to equip your backend program with GUI.
# Example
[example code](./demo/demo.py)
# How to use
- `pip install base-gui`
- create base_gui.Config to specify the input type and number, here I call it `data row`
```python
INPUT_ROW = {
'count': 3,
'row': [
{'label': 'input I', 'last_label': 'select file', 'type': 'FILE'},
{'label': 'input II', 'last_label': 'select file', 'type': 'FILE'},
{'label': 'output path', 'last_label': 'select dir', 'type': 'FILE'},
]
}
```
- inherit base_gui.BaseWindow, and instantiate its abstract methods, button callbacks mainly
- create app and run it
- the above configuration will generate the window like
