IN ADVENTURE 3 you began to create GUIs using the
Tkinter module in Python. You created different programs that used buttons, text boxes and labels. That little bit of knowledge can take you a very long way. By mixing and matching those few basic elements, you can create almost anything you can think of.
In this adventure, you’ll take your knowledge of
Tkinter one step further. You’re about to embark on a series of small adventures in which you’ll learn how to create a colour mixer and a click speed game. You’ll also be introduced to the concepts behind the programs and different ways to modify how your program works so that you can create your own ideas.
Time to start!
In this program, you’ll create a colour picker. Before you start, let’s look at one of the things you’ll be using in your program: a slider.
So far in your
Tkinter Python programs you have used text boxes to input data into your programs. Although this is very flexible, there are many other ways to input data.