Work With Kivy Widgets
Some common widgets that you may have used include buttons, combo boxes, and tabs. Kivy has many widgets built into its framework, and in this part of the course, you’ll look at using a couple of them, starting out with
Every Kivy application needs to subclass the
App class and override
build. This is where you’ll put your UI code or make calls to other functions that you define. In this case, you create a
Label widget and pass in its
Kivy has a couple of different image-related widgets to choose from. You can use
Image to load local images from your hard drive or
AsyncImage to load an image from a URL. For this example, you’ll stick with the standard
03:12 The text from the previous example has been replaced with an image. Now that you have the basics down, in the next section of the course, you’ll learn how to add and arrange multiple widgets in your application.
Become a Member to join the conversation.