[ Foro de Python ]

kivy - buildozer

15-Oct-2019 03:52
Invitado (alexdel)
0 Respuestas

Buenas noches empece una programación en python kivy
Utilizando buildozer para crear una apk, lo poco que e logrado hasta ahora corre bien pero al hacerlo apk no abre en el móvil y solo me pasa con este código si alguien pudiera ayudarme de antemano gracias

Py
import kivy

from kivy.app import App
from kivy.uix.floatlayout import FloatLayout

class Principal(FloatLayout):
None

class MainApp(App):
title = "TEA"
def build(self):
return Principal()

if __name__ == '__main__':
MainApp().run()

Kv
<Principal>:
canvas:
Color:
rgb: 1,1,1
Rectangle:
size: self.size
pos: self.pos
Color:
rgb: 1,1,1
Image:
source: "espe.png"
pos_hint: {'x':0.1,'y':0.45}
size_hint:0.6,0.6
Image:
source: "meca.jpeg"
pos_hint: {'x':0.6,'y':0.65}
size_hint:0.3,0.3
Label:
id: label
text: "Bievenido mi nombre es"
font_size: 60
size_hint: 0.3, 0.3
font_name: "Purisa"
pos_hint: {'center_x':0.5,'y':0.43}
color: 0.086,0.49,0.075,1
Label:
id: label
text: "Pepito"
font_size: 90
size_hint: 0.3, 0.3
font_name: "Purisa"
pos_hint: {'center_x':0.5,'y':0.29}
color: 0.086,0.49,0.075,1
Label:
id: label
text: "Mis creadores"
font_size: 40
size_hint: 0.3, 0.3
font_name: "Purisa"
pos_hint: {'x':0.05,'y':0.15}
color: 0.024,0.027,0.043,1
Label:
id: label
text: "- Alexander Delgado"
font_size: 25
size_hint: 0.3, 0.3
font_name: "Purisa"
pos_hint: {'x':0.05,'y':0.05}
color: 0.024,0.027,0.043,1
Label:
id: label
text: "- Brandon Muñoz"
font_size: 25
size_hint: 0.3, 0.3
font_name: "Purisa"
pos_hint: {'x':0.02,'y':0.01}
color: 0.024,0.027,0.043,1
Button:
text:"Continuar"
size_hint: 0.3,0.1
pos_hint: {'x':0.6,'y':0.2}
on_press:
Button:
text:"Salir"
size_hint: 0.3,0.1
pos_hint: {'x':0.6,'y':0.1}
on_press: quit()




(No se puede continuar esta discusión porque tiene más de dos meses de antigüedad. Si tienes dudas parecidas, abre un nuevo hilo.)