CREATING A PHOTO SHOOT PAGE USING KIVYMD
Code of python Program
# Code of Python Program
from kivymd.app import MDApp
from kivy.core.window import Window
Window.size = (360,600)
class Myapp(MDApp):
    def build(self):
        return
Myapp().run()
Code of kivy program
# Code of kivy Program
MDScreen :
    MDBoxLayout :
        orientation : 'vertical'
        MDToolbar : 
            title : 'Photo Shoots'
            md_bg_color : [0,0,1,1]
            left_action_items : [['menu', lambda x : print('menu')]]
            right_action_items : [['magnify', lambda x : print('serach')],['dots-vertical', lambda x : print('vertical dots')]]
        ScrollView :
            MDGridLayout :
                cols : 2
                size_hint_y : 2.4
                MDCard :
                    size_hint_x : .5
                    size_hint_y : .3  
                    MDBoxLayout :
                        orientation : 'vertical'
                        padding : '5dp'
                        Image : 
                            source : 'fruit1.jpg'
                        MDLabel :
                            text : '    Apple'
                            size_hint_y : .2
                            font_style : 'H6'
                        MDLabel :
                            text : '     63.7 MB'
                            size_hint_y : .2
                            font_size : '15dp'
                MDCard :
                    size_hint_x : .5
                    size_hint_y : .3  
                    MDBoxLayout :
                        orientation : 'vertical'
                        padding : '5dp'
                        Image : 
                            source : 'fruit2.jpg'
                        MDLabel :
                            text : '    Grapes'
                            size_hint_y : .2
                            font_style : 'H6'
                        MDLabel :
                            text : '     31.2 MB'
                            size_hint_y : .2
                            font_size : '15dp'
                MDCard :
                    size_hint_x : .5
                    size_hint_y : .3  
                    MDBoxLayout :
                        orientation : 'vertical'
                        padding : '5dp'
                        Image : 
                            source : 'fruit3.jpg'
                        MDLabel :
                            text : '    Cherry'
                            size_hint_y : .2
                            font_style : 'H6'
                        MDLabel :
                            text : '     34.2 MB'
                            size_hint_y : .2
                            font_size : '15dp'
                MDCard :
                    size_hint_x : .5
                    size_hint_y : .3  
                    MDBoxLayout :
                        orientation : 'vertical'
                        padding : '5dp'
                        Image : 
                            source : 'fruit4.jpg'
                        MDLabel :
                            text : '    Mango'
                            size_hint_y : .2
                            font_style : 'H6'
                        MDLabel :
                            text : '     76.4 MB'
                            size_hint_y : .2
                            font_size : '15dp'
                MDCard :
                    size_hint_x : .5
                    size_hint_y : .3  
                    MDBoxLayout :
                        orientation : 'vertical'
                        padding : '5dp'
                        Image : 
                            source : 'fruit5.jpg'
                        MDLabel :
                            text : '    Dragon Fruit'
                            size_hint_y : .2
                            font_style : 'H6'
                        MDLabel :
                            text : '     56.3 MB'
                            size_hint_y : .2
                            font_size : '15dp'
                MDCard :
                    size_hint_x : .5
                    size_hint_y : .3  
                    MDBoxLayout :
                        orientation : 'vertical'
                        padding : '5dp'
                        Image : 
                            source : 'fruit6.jfif'
                        MDLabel :
                            text : '    Pomgranate'
                            size_hint_y : .2
                            font_style : 'H6'
                        MDLabel :
                            text : '     56.4 MB'
                            size_hint_y : .2
                            font_size : '15dp'
                MDCard :
                    size_hint_x : .5
                    size_hint_y : .3  
                    MDBoxLayout :
                        orientation : 'vertical'
                        padding : '5dp'
                        Image : 
                            source : 'fruit7.jfif'
                        MDLabel :
                            text : '    Water Melon'
                            size_hint_y : .2
                            font_style : 'H6'
                        MDLabel :
                            text : '     62.3 MB'
                            size_hint_y : .2
                            font_size : '15dp'
                MDCard :
                    size_hint_x : .5
                    size_hint_y : .3  
                    MDBoxLayout :
                        orientation : 'vertical'
                        padding : '5dp'
                        Image : 
                            source : 'fruit8.jfif'
                        MDLabel :
                            text : '    Strawberry'
                            size_hint_y : .2
                            font_style : 'H6'
                        MDLabel :
                            text : '     60.9 MB'
                            size_hint_y : .2
                            font_size : '15dp'
                MDCard :
                    size_hint_x : .5
                    size_hint_y : .3  
                    MDBoxLayout :
                        orientation : 'vertical'
                        padding : '5dp'
                        Image : 
                            source : 'fruit9.jpg'
                        MDLabel :
                            text : '    Guava'
                            size_hint_y : .2
                            font_style : 'H6'
                        MDLabel :
                            text : '     8.5 MB'
                            size_hint_y : .2
                            font_size : '15dp'
                MDCard :
                    size_hint_x : .5
                    size_hint_y : .3  
                    MDBoxLayout :
                        orientation : 'vertical'
                        padding : '5dp'
                        Image : 
                            source : 'fruit10.jfif'
                        MDLabel :
                            text : '    Chikoo'
                            size_hint_y : .2
                            font_style : 'H6'
                        MDLabel :
                            text : '     87.4 MB'
                            size_hint_y : .2
                            font_size : '15dp'
        MDBottomAppBar :
            md_bg_color : [0,0,1,1]
            MDToolbar :
                left_action_items : [['menu',lambda x : print('menu')],['bell', lambda x : print('Notification')],['share-variant', lambda x : print('share')]]
                type : 'bottom' 
                mode : 'end'
                icon : 'plus'
                icon_color : [0,0,1,1]           
Comments
Post a Comment