Created
September 14, 2021 04:07
-
-
Save Spidy20/2886a479da9fa08ebf17f7ec1e601acb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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