How to Create Toolbar in KIvyMD Python


 

How to create ToolBar in KivyMD

So Guys, Today we will learn How to Create a Toolbar in KivyMD. 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.

Let's Get Started

Step 1: First You have to import Builder and MD App

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/ 
#Facebook: https://www.facebook.com/vipincoding 
#Instagram: https://www.instagram.com/vipincoding
**************************************************************************************

from kivy.lang import Builder
from kivymd.app import MDApp

VC = '''
MDBoxLayout:
    orientation: "vertical"
    
    MDToolbar:
        title: "vipin channel"
        elevation: 10
        left_action_items: [["menu", lambda x: app.callback()]]
        right_action_items: [["dots-vertical", lambda x: app.callback_1()], ["android", lambda x: app.callback_2()]]
        md_bg_color: app.theme_cls.accent_color
    
    MDLabel:
        text: "vipin coding videos"
        halign: "center"
'''

class Test(MDApp):
    def build(self):
        return Builder.load_string(VC)

Test().run()

It's Done 

Greate You have created your Toolbar for your application.

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

Thanks