O'Reilly logo

Adventures in Python by Craig Richardson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

ch04-pag105

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!

Creating Sliders

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required