#:kivy 1.0.9
<AnimatedButton>:
    canvas.before:
        Color:
            rgb: (1, 1, 1)
        BorderImage:
            border: root.border if root.border else (16, 16, 16, 16)
            pos: self.pos
            size: self.size
            texture: self.texture_background

<gifScatter>
    on_size: self.center = win.Window.center
    size: imag.size
    size_hint: None, None
    Image:
        id: imag
        source: 'data/images/simple_cv_joint_animated.gif'
        on_touch_down: root.parent.parent.parent.currentObj = self

<zipScatter>
    on_size: self.center = win.Window.center
    size: imag.size
    size_hint: None, None
    Image:
        id: imag
        source: 'data/images/cube.zip'
        anim_delay: 0.05
        on_touch_down: root.parent.parent.parent.currentObj = self

<jpgScatter>
    on_size: self.center = win.Window.center
    size: imag.size
    size_hint: None, None
    Image:
        id: imag
        source: 'data/images/bird.zip'
        on_touch_down: root.parent.parent.parent.currentObj = self

<Right_Frame>
    size_hint: (.2, 1)
    padding: 10
    cols: 1
    canvas:
        Color:
            rgba: .1,.45,.31,.9
        Rectangle:
            pos: self.pos
            size:self.size
    Label:
        halign: 'center'
        text_size: self.size
        text: root.currentObj.source if root.currentObj else 'click on a Image to change it\'s properties'
    Label:
        id: spdlbl
        halign: 'center'
        text_size: self.size
        text: 'No Image selected' if not root.currentObj else 'Animation speed: %f FPS' %(1/root.currentObj.anim_delay) if root.currentObj.anim_delay > 0 else 'Animation speed: 0 FPS'
    Slider:
        min:0
        max: 100 if root.currentObj else 0
        value: (1/root.currentObj.anim_delay) if (root.currentObj and root.currentObj.anim_delay>0) else 0
        on_value: root.on_value(self, args[1], spdlbl)
