An open API service indexing awesome lists of open source software.

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

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

![base_gui_example](./demo/example.jpg)