#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Dec 10 13:39:40 2020

@author: francescoserraino
"""

<Principal>:
    orientation:'vertical'
    canvas:
        Color:
            rgb: 1,1,1,
        Rectangle:
            pos: self.pos
            size: self.size
    Button:
        text: 'Abrir popup'
        on_press: root.abre_popup()
    Button:
        text: 'Abre seleccionador'
        on_press: root.abre_seleccionador()
<CustomPopup>:
    size_hint: 0.5,0.5
    auto_dismiss: False
    title: "Este es mi Popup"
    Button:
        text: 'Cerrar popup'
        on_press: root.dismiss()
<Seleccionador>:
    size_hint: 0.5,0.5
    auto_dismiss: False
    title: "Este es mi Popup"
    id: select
    BoxLayout:
        Button:
            text: 'Cerrar'
            on_press: root.dismiss()
        Label:
            id: idea
            text: select.idea_texto