How it works...
For making a fully featured application, you need the App class which is imported from the kivy library. For creating interface elements like button, label, and so on and for arranging them, several more classes like, the Button class, Label class and BoxLayout too are imported in the application.
To access methods and members of the App class, a class is created by name WelcomeApp that inherits the App class. To create a button in the application, an object of the Button class is created by name, pushButton. The text for the button is set as Click Me. Also, a Label class's instance is created by name labelMessage without any default text. The text for the Label widget will be displayed through the code. An object of BoxLayout ...
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.
Read now
Unlock full access