Python Nordeste 2016 - Aplicações multiplataforma - Kivy

download Python Nordeste 2016 - Aplicações multiplataforma - Kivy

If you can't read please download the document

Transcript of Python Nordeste 2016 - Aplicações multiplataforma - Kivy

Criando aplicaes multiplataforma (e mobile) com Python

Julio Cesar Eiras Melanda

2016

Quem sou

Julio CesarUNIFEI

Vrias empresas em So Jos dos Campos

Toptal

programeempython.com.br

PyBR2015

Python Vale

O que o Kivy

Opensource

Multiplataforma

Mobile

SDL

Criando interface

Subclasse de App

build method

Classes para widgets e layouts

Events

https://github.com/jcemelanda/PyNE2016/blob/master/main_w_class.py

https://github.com/jcemelanda/PyNE2016/blob/master/main_with_event_class.py

Executando a aplicao

Simplesmente execute o app

Kv language

Fcil

Rpida

Legvel

Propriedades podem ser comandos Python validos

Definir interface em arquivo .kv

https://github.com/jcemelanda/PyNE2016/blob/master/main_w_kv.py

https://github.com/jcemelanda/PyNE2016/blob/master/my.kv

https://github.com/jcemelanda/PyNE2016/blob/master/main_with_event_kv.py

https://github.com/jcemelanda/PyNE2016/blob/master/myevent.kv

Executando com Kivy Language

Igualzinho antes

Empacotando para mobile

Buildozerpip pip install buildozer

gitgit clone https://github.com/kivy/buildozer.git

cd buildozer

python setup.py install

Gerar spec scriptbuildozer init

Android SDK

Excuta direto no aparelho ou cria apkbuildozer android debug deploy run

Exemplo 3D&T

https://github.com/jcemelanda/3D-T-Character-Sheet

Problemas

Desempenho

Desempenho

Desempenho

Perguntas?

Twitter: @jcemelanda

Email: [email protected]

Github: github.com/jcemelanda