Skip to main content

simplegui - Simplified GUI generation using Tkinter

Project description


simplegui is a simplified GUI generator using Tkinter.




Unzip the file, then at the command line run

python install


>>> 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)


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


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


Florian Berger

Project details

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page