How to make White Board Using KivyMD



 

How to create whiteboard in python | kivy | kivymd | vipin coding
How to create whiteboard in python | kivy | kivymd | vipin coding

So Guys, Today we will learn How to create a whiteboard in python | kivy | kivymd | vipin coding. In this tutorial, I will teach all the steps on how to create Apps in python using KivyMD. You can create apps in python using KivyMD. You will use Material Design to design your apps in KivyMD. You can create awesome applications as you want. So guys let's start our today's topic that is how to create ToolBar in KivyMD.

In this course, we will talk about how to build beautiful mobile apps using Kivy Material Design, also known as KivyMD in short. KivyMD is a python package that has been created using our classic Kivy. Using KivyMD you can make awesome designs for your Mobile Apps. After this video series, you will be able to create such apps on your own. Why do KivyMD apps look so good? The reason for that is that they follow the material design principle.

With KivyMD, you do not so much choose colors for your app and widgets, instead, you choose a broad color theme made up of one strong color, and KivyMD applies that theme to all of your widgets itself. In this tutorial, we will talk about how to build beautiful mobile apps using Kivy Material Design, also known as KivyMD in short. KivyMD is a python package that has been created using our classic Kivy. Using KivyMD you can make awesome designs for your Mobile Apps. After this video series, you will be able to create such apps on your own. Why do KivyMD apps look so good? The reason for that is that they follow the material design principle. You have some latitude in changing the lightness and darkness of certain things, but that's really all. This is in keeping with the precepts of Google's Material Design (MD).


Let's Get Started

Step 1: First You have to import Builder and MD App, import widget, import line, color, button

Step 2: Then you have to design your app layout.

Step 3: Then you have to create a class to test your app

Step 4: Run the code

Copy The Code given Below and try to Run

**************************************************************************************
#Licence:
#You can use source codes as you want
#But You have to give our profile link in your code as comment

#Copy Below Codes and Paste in your codes Comment Section

#Github: https://github.com/vipinjangra 
#Youtube: https://www.youtube.com/c/vipincoding/ 
#Blog: http://vipincoding.wordpress.com/ 
#Blog: http://vipincoding.blogspot.com
#Facebook: https://www.facebook.com/vipincoding 
#Instagram: https://www.instagram.com/vipincoding
**************************************************************************************

from kivymd.app import MDApp
from kivy.uix.widget import Widget
from kivy.graphics import Line, Color
from kivy.uix.button import Button


class DrawInput(Widget):

    def on_touch_down(self, touch):
        print(touch)
        with self.canvas:
            Color(1, 0, 0)
            touch.ud["Line"] = Line(points=(touch.x, touch.y))

    def on_touch_move(self, touch):
        print(touch)
        touch.ud["Line"].points += (touch.x, touch.y)

    def on_touch_up(self, touch):
        print("Left", touch)


class vipincanvas(MDApp):

    def build(self):
        parent = Widget()
        self.painter = DrawInput()
        eraser = Button(text='Erase', background_color =(5, 1, 1, 1))
        eraser.bind(on_release=self.clear_canvas)
        parent.add_widget(self.painter)
        parent.add_widget(eraser)
        return parent

    def clear_canvas(self, obj):
        self.painter.canvas.clear()


if __name__ == "__main__":
    vipincanvas().run()

It's Done 

Greate You have designed your Whiteboard application.

Like and Comment and Share to all and Subscribe for more updates.

Thanks