Chapter 3. Programmable Drum Machine
We looked at several common Tkinter widgets like Menu, Buttons, Label, and Text in Chapter 2, Making a Text Editor. Let us now expand our experience with Tkinter to make some music. Let us build a cross-platform drum machine using Tkinter and some other Python modules.
Some of the key objectives for this chapter are:
- To learn to structure Tkinter programs in the object oriented style of programming
- To delve deeper into a few more Tkinter widgets such as Spinbox, Button, Entry, and Checkbutton
- To apply the
grid
geometry manager in a practical project - To understand the importance of choosing the right data structure for our programs
- To learn to bind higher-order callback functions to widgets
- To learn to use Tkinter in conjunction with some standard and third-party modules
- To understand the need for multithreading and how to write multithreaded applications
- To learn about object serialization or pickling
- To learn about ttk widgets