onestraw / base_gui

A wrapper for Tkinter to equip your backend program with GUI easily

Home Page:https://pypi.org/project/base-gui/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Base GUI

A wrapper for Tkinter, it's very simple and helpful to equip your backend program with GUI.

Example

example code

How to use

  • pip install base-gui
  • create base_gui.Config to specify the input type and number, here I call it data row
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

About

A wrapper for Tkinter to equip your backend program with GUI easily

https://pypi.org/project/base-gui/


Languages

Language:Python 97.7%Language:Makefile 2.3%