Python | Line (Canvas) in kivy
Kivy is a platform independent GUI tool in Python. As it can be run on Android, IOS, linux and Windows etc. It is basically used to develop the Android application, but it does not mean that it can not be used on Desktops applications.
Line is a vertex canvas instruction. It allows drawing of lines through points. This code shows how to use/draw the extended line drawing such as circles, ellipses, rectangles and Bezier and so on.
Basic Approach: 1) import kivy 2) import kivy App 3) import Gridlayout 4) import widget 5) set minimum version(optional) 6) Create as much as widget class as needed 7) create the App class 8) return the widget/layout etc class 9) Run an instance of the class
Implementation of Approach:
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course