Check-A-Prijs-Mobile-App_Hack-O-Topia_PTC / PriceCharm / screen_3.kv
screen_3.kv
Raw
#: import utils kivy.utils
<Screen3>:
    name: "Screen_3"
    lastgridscreen3: lastgridscreen3
    BoxLayout:
        orientation: "vertical"
        padding: 20
        spacing: 10
        pos_hint: {'center_x': 0.5}
        GridLayout:
            id : 'topMostGrid'
            size_hint_y: None
            height: self.minimum_height
            cols: 4
            rows:1
            Button: 
                id: 'HomeScreen'
                text: "Price_Checker"
                size_hint: (None,None)
                width: 210
                height: "40dp"
            Label:
                text: ''
                size_hint_x: None
                width: 25
            Button: 
                text: "S"
                size_hint: (None,None)
                width: 40
                height: "40dp"
            Button: 
                text: "M"
                size_hint: (None,None)
                width: 40
                height: "40dp"
                color: utils.get_color_from_hex("#AE1658")

        GridLayout:
            size_hint_y: None
            height: self.minimum_height
            cols: 3
            rows: 1
            pos_hint:{'center_x': 0.5}
            Button:
                text: "Home"
                size_hint: (None,None)
                width: 105
                height: "40dp"
                on_press: app.root.switch_screen_to_Screen_1()
                on_release: app.root.current = "Screen_1" 
            Button:
                text: "Hot Items"
                size_hint: (None,None)
                width: 105
                height: "40dp"
                on_press: app.root.switch_screen_to_Screen_2()
                on_release: app.root.current = "Screen_2" 
            Button:
                text: "Gallery"
                size_hint: (None,None)
                width: 105
                height: "40dp"
                on_press: app.root.switch_screen_to_Screen_3()
                on_release: app.root.current = "Screen_3" 

        ScrollView:
            id: scroll4grid
            do_scroll_y: True
            GridLayout:
                spacing: 10
                id: lastgridscreen3
                cols: 2
                row_default_height: '80dp'
                size_hint: 1, None
                height: 2000