ButtonPad, a lightweight GUI framework built on tkinter

I wanted a GUI framework that was simple and didn’t require a heavy package like PyQt or PySide, so I created ButtonPad. It’s built on top of tkinter so it doesn’t have any dependencies. It’s sort of like those programmable stream decks or drum machines with a grid of buttons. It’s slightly configurable, but I tried to limit it to just some basic widgets: buttons, text boxes, labels, and images. It also lets you set up a status bar or menu, and imports the JavaScript-like alert() dialog functions from PyMsgBox. Windows are resizable by default. Layout is done with a multi-line string of comma-separated widget names.

I think it’d be useful for programming tutorials that want more than print() and input(), but don’t want a full blown GUI package. You can run python -m buttonpad` to view several example programs I made with it (calculator, Conway’s Game of Life, a few games, etc.)

I’d be interested in what people think.

10 Likes