Posts

Python Kivy Tutorial

Image
How To Create A Simple Kivy App Using Python? To create your first kivy app, you need to install a python module called kivy . If you don't know how to install kivy module Click Here . After installing this module simply enter the code shown below. After typing the code succesfully, create a Class with the name of your app. In this case I will give it a name  MyFirstApp() and inherit the App class in it. After creating the Class create a Function named build() with parameter self . After that declare a variable named self.window and assign BoxLayout() class to it. Then simply return the self.window variable. If you are confused with my text or not understanding my steps you can simply see the images shown below. Now you have written the code to open the window of our app. But, how will this code run? Its simple just write the code shown below after coming out of the class block of code. After writing this line of code just click on Run button or just press F5 key in ...