-
Notifications
You must be signed in to change notification settings - Fork 87
/
Copy pathWindow+Android_GUI.py
48 lines (39 loc) · 1.07 KB
/
Window+Android_GUI.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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()