ImageViewer:

<ImageViewer>:

    canvas.before:
        Color:
            rgba: 0.7, 0.7, 0.7, 1
        Rectangle:
            pos: self.pos
            size: self.size

    BoxLayout:
        orientation: 'vertical'
        size: root.size

        Image:
            source: root.source

        BoxLayout:
            size_hint_y: 0.15
            padding: 20,30,30,20
            Button:
                id: button1
                text: "画像を固定する"
                font_size: 30
                on_press: root.ViewModeToggle()
            Button:
                id: button2
                text: "ランダム表示"
                font_size: 30
                on_press: root.RandomPicture()
