-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStarRating_imageGallary.py
48 lines (34 loc) · 1004 Bytes
/
StarRating_imageGallary.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.uix.screenmanager import Screen,ScreenManager
from kivy.lang import Builder
from kivymd.uix.imagelist import SmartTileWithStar
class MyTile(SmartTileWithStar):
pass
strt_String = '''
ScreenManager:
FirstScr:
<FirstScr>:
name: 'First'
ScrollView:
MDGridLayout:
cols:2
padding: dp(5),dp(5)
spacing: dp(10)
MyTile:
stars:5
source: 'https://www.pxfuel.com/en/desktop-wallpaper-olzer'
MyTile:
stars:4
source: 'https://www.pxfuel.com/en/desktop-wallpaper-olzer'
'''
class FirstScr (Screen):
pass
SManager = ScreenManager()
SManager.add_widget(FirstScr(name = 'First'))
class Main_app(MDApp):
def build(self):
scr = Screen()
self.load_file = Builder.load_string(strt_String)
scr.add_widget(self.load_file)
return scr
Main_app().run()