Skip to Content
Kivy - Interactive Applications and Games in Python
book

Kivy - Interactive Applications and Games in Python

by Roberto Ulloa
June 2015
Intermediate to advanced
206 pages
4h 32m
English
Packt Publishing
Content preview from Kivy - Interactive Applications and Games in Python

Slider – including a progression bar

In this section, we will introduce a new widget called Slider. This widget will serve as a progression bar, but at the same time it will allow the user to forward and reverse the video. We will integrate the progression bar into the control bar, as shown in the following cropped screenshot:

Slider – including a progression bar

As you can see, Slider appears to the left of the play/pause and stop buttons. Let's change controlbar.kv to add Slider to reflect this order. Let's start with the header of the file and the ControlBar class definition:

250. # File name: controlbar.kv 251. <ControlBar@GridLayout>: 252. ... 253. VideoSlider: 254. value: root.progress ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Creating Apps in Kivy

Creating Apps in Kivy

Dusty Phillips
Kivy Cookbook

Kivy Cookbook

Hugo Solis
Kivy Blueprints

Kivy Blueprints

Mark Vasilkov

Publisher Resources

ISBN: 9781785286926