Skip to main content

Tkintertoy

Tkintertoy was designed to be a easy to use GUI library based on Tkinter. It was intended for novice programmers to develop GUIs with as little trouble as possible. However, more advanced programmers can reach the more complex features of Tkinter easily. Here is a short example:

from tkintertoy import Window
# create the window
gui = Window()
gui.setTitle('My First Tkintertoy GUI!')
# add the widgets
gui.addEntry('name', 'Type in your name')
gui.addLabel('welcome', 'Welcome message')
gui.addButton('commands')
# plot the widgets
gui.plotxy('name', 0, 0)
gui.plotxy('welcome', 0, 1)
gui.plotxy('commands', 0, 2, pady=10)
# start the event processing loop
while True:
    gui.waitforUser()
    if gui.content:
        gui.set('welcome', 'Welcome ' + gui.get('name'))
    else:
        break

This code will create a small window with an entry, label, and command button widgets. The application will wait for the user to type in their first name. After typing it in, and clicking on Ok, the application will display a welcome label. The user exits the code by clicking on Cancel.

Simple GUI

As you can see in order to create a simple GUI, you create a window, add widgets, plot the widgets in the desired location, and then call waitforUser.

While Tkintertoy was designed to be an GUI library for simple interfaces it has been used in more complex code as well.

Using Tkintertoy, it is hoped that Python instructors can quickly move students from boring command-line applications to useful standard GUIs. A tutorial with many useful examples in included with the documentation.

Release files for tkintertoy 1.6.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tkintertoy 1.6.2
File Size Uploaded
tkintertoy-1.6.2.tar.gz 1.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for tkintertoy 1.6.2
File Interpreter ABI Platform
tkintertoy-1.6.2-py3-none-any.whl Python 3 none any Details

Total release size: 3.2 MB

Release files / tkintertoy-1.6.2.tar.gz

Download URL tkintertoy-1.6.2.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
161cc72350e76abc6e232824ebd3a7eed992ebcb631292affcbb5ee705b69f4a
BLAKE2b-256 checksum
How to use checksums
ca58c9691044a5c1edd27720b5ac287dc66c1abb4138a92dccd2031504b8fd4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.0

Release files / tkintertoy-1.6.2-py3-none-any.whl

Download URL tkintertoy-1.6.2-py3-none-any.whl
Size 1.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
bad8306c909410501b49b592dcbc2d41fc5c7b5a90a64517d177ef61535a8ca0
BLAKE2b-256 checksum
How to use checksums
154acd6cf121f340b386059a1161486367d2f9516e7325a3a5128ed521d27d7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.0

Release history Release notifications | RSS feed

This release

1.6.2 This release

2 release files

1.6.1

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

2 release files

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