Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Kivy studies

470 views

Published on

Kivy 勉強会#.3.5資料

Published in: Education
  • Be the first to comment

Kivy studies

  1. 1. KIVY STUDIES #3.5 DAISUKE SAITO
  2. 2. OUTLINE • About Kivy • Installation • Let’s try Kivy • Build to Android APP 2
  3. 3. ABOUT KIVY 3 • ナチュナルユーザーインターフェースの環境 • Windows, Mac, Linux, Android, iOS, RaspberryPi で動作するアプリケーションを開発できる
  4. 4. INSTALLATION FOR WINDOWS 1. python -m pip install --upgrade pip wheel setuptools 2. python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew kivy.deps.gstreamer --extra-index-url https://kivy.org/downloads/packages/simple/ 3. python –m pip install kivy • OpenCV 2.0 – Camera input. • Pillow – Image and text display. • PyEnchant – Spelling correction. Other OS http://qiita.com/Ds110/items/2988646cb6622648b463 http://qiita.com/dodo5522/items/46058b6cb3e7c94dd984 4
  5. 5. LET’S TRY KIVY SIMPLE APP 引用t: http://qiita.com/Ds110/items/2988646cb6622648b463
  6. 6. THE USING KV LANGUAGE Referencet: http://qiita.com/Ds110/items/2988646cb6622648b463
  7. 7. BUILD TO ANDROID APP 7
  8. 8. BUILDZER.SPEC 8
  9. 9. BUILD TO ANDROID APP 9
  10. 10. LT 10
  11. 11. 日本語を扱う • 基本は対応していない • フォントを追加することにより表示可能 11
  12. 12. このように書く # -*- coding: utf-8 -*- import kivy from kivy.core.text import LabelBase, DEFAULT_FONT from kivy.app import App from kivy.uix.button import Button 12
  13. 13. このように書く LabelBase.register(DEFAULT_FONT, 'VL-Gothic-Regular.ttf') class MyApp(App): def build(self): return Button(text='こんにちは', font_size=“50pt") if __name__ == '__main__': MyApp().run() 13 参考: http://blog.livedoor.jp/katsuooo_l/archives/42346599.html
  14. 14. 表示できました 14

×