Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Python Nordeste 2016 - Aplicações multiplataforma - Kivy

Python Nordeste 2016 - Aplicações multiplataforma - Kivy

Apresentação sobre como criar aplicações multiplataforma e mobile utilizando o framework gráfico Kivy.

A palestra foi ministrada na conferência Python Nordeste 2016 em Teresina Piauí, dia 11 de junho de 2016.

Julio Cesar Melanda

June 11, 2016
Tweet

More Decks by Julio Cesar Melanda

Other Decks in Programming

Transcript

  1. Quem sou • Julio Cesar – UNIFEI – Várias empresas

    em São José dos Campos – Toptal – programeempython.co m.br – PyBR2015 – Python Vale
  2. 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
  3. Kv language • Fácil • Rápida • Legível • 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_w ith_event_kv.py • https://github.com/jcemelanda/PyNE2016/blob/master/myeven t.kv
  4. Empacotando para mobile • Buildozer – pip • pip install

    buildozer – git • git clone https://github.com/kivy/buildozer.git • cd buildozer • python setup.py install – Gerar spec script • buildozer init • Android SDK • Excuta direto no aparelho ou cria apk – buildozer android debug deploy run