Skip to content

Instantly share code, notes, and snippets.

@Spidy20
Created September 14, 2021 04:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Spidy20/2886a479da9fa08ebf17f7ec1e601acb to your computer and use it in GitHub Desktop.
Save Spidy20/2886a479da9fa08ebf17f7ec1e601acb to your computer and use it in GitHub Desktop.
from kivymd.app import MDApp
from kivy.lang import Builder
class Test(MDApp):
def build(self):
self.title = 'Programming'
self.theme_cls.primary_palette = "Blue"
return Builder.load_string(
'''
BoxLayout:
orientation:'vertical'
MDToolbar:
title: 'Programming'
md_bg_color: app.theme_cls.primary_color
specific_text_color: 1, 1, 1, 1
MDBottomNavigation:
MDBottomNavigationItem:
name: 'screen 1'
text: 'Python'
icon: 'language-python'
Image:
id: imageView
source: 'python.png'
MDBottomNavigationItem:
name: 'screen 2'
text: 'C++'
icon: 'language-cpp'
Image:
id: imageView
source: 'cp.png'
MDBottomNavigationItem:
name: 'screen 3'
text: 'Kivy'
icon: 'android'
Image:
id: imageView
source: 'kivy.png'
'''
)
Test().run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment