Chapter 4. Widgets

In this chapter, we will cover:

  • Using the basics: buttons, labels, and text inputs
  • Manipulating the widget tree
  • Traversing the tree
  • Using swappable widgets
  • Organizing with layouts
  • Using FloatLayout
  • Using BoxLayout
  • Using GridLayout
  • Using StackLayout
  • Using RelativeLayout
  • Using AnchorLayout
  • Working with ActionBar

Introduction

Widgets have become common in GUI frameworks, and nowadays even a user can easily interact with and configure them. For our purpose, we define the widgets as elements of interaction that are reusable. They are those graphical elements, which are important pieces of the human-machine interface.

For a Kivy framework, the widgets play an important role, not just because Kivy is a graphical framework, but also because it intends ...

Get Kivy Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.