Technical requirements

Besides Tkinter, we will use a few standard Python libraries. The next import should execute without any error as they are built-in in most Python distributions:

import json, collections, functools, math

In addition, we use simpleaudio, which is a module that lets us play notes on the piano.

You can install simpleaudio using the following command:

pip3 install simpleaudio

Get Tkinter GUI Application Development Blueprints - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.