Skip to main content

About

simplegui is a simplified GUI generator using Tkinter.

Prerequisites

Python http://www.python.org

Installation

Unzip the file, then at the command line run

python setup.py install

Usage

>>> import simplegui
>>> g = simplegui.GUI()
>>> def buttoncallback():
...     g.status("Button klicked!")
>>> g.button("Klick me!", buttoncallback)
>>> g.button("Klick me too!", buttoncallback)
>>> def listboxcallback(text):
...     g.status("listbox select: '{0}'".format(text))
>>> g.listbox(["one", "two", "three"], listboxcallback)
>>> g.listbox(["A", "B", "C"], listboxcallback)
>>> def scalecallback(text):
...     g.status("scale value: '{0}'".format(text))
>>> g.scale("Scale me!", scalecallback)
>>> g.run()
>>>

Documentation

To read the API documentation, open a shell / DOS window, navigate to the simplegui directory, and run

pydoc simplegui

You can create a HTML version using

pydoc -w simplegui

License

simplegui is licensed under the GPL. See the file COPYING for details.

Author

Florian Berger

Release history Release notifications | RSS feed

This release

0.1.1 This release

0.1.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page