O'Reilly logo

Kivy – Interactive Applications and Games in Python - Second Edition by Roberto Ulloa

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

Control bar – adding buttons to control the video

In this section, we will work on user interaction with the application. Right now, we control the video with touches on the screen that play, pause, and stop the video. However, this is not very intuitive for a new user of our application. So, let's add some buttons to improve the usability of our application.

We will use Image widgets enhanced with ToggleButtonBehaviour and ToggleBehaviour classes in order to create buttons for a play/pause button and a stop button, respectively. Here is a cropped screenshot of the simple control bar that we will be implementing in this section:

Control bar – adding buttons to control the video

Let's start defining ...

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