วันจันทร์ที่ 14 กันยายน พ.ศ. 2558

Install kivy library

Graphic application development (GUI, MVC) by using Kivy

Installation (use python3)

    1. sudo add-apt-repository ppa:kivy-team/kivy


    2. sudo apt-get update

    3. sudo apt-get install python3-kivy

    4. sudo apt-get install kivy-examples
    kivy-examples จะอยู่ที่ : (will be in /usr/share/kivy-examples)

ทดสอบโปรเเกรม

 
     # File name: hello.py 
     import kivy
     kivy.require('1.7.0')
     from kivy.app import App
     from kivy.uix.button import Label

     class HelloApp(App):
         def build(self):
             return Label(text='Hello World!')

     if __name__=="__main__":
         HelloApp().run()
               

ผลการทดสอบโปรเเกรม


กด F1

Books from library

    Creating apps in Kivy
    Dusty Phillips
    Sebastopol, CA : O'Reilly, 2014

    Kivy : interactive applications in Python :
    create cross-platform UI/UX applications and games in Python 
    Roberto Ulloa

ไม่มีความคิดเห็น:

แสดงความคิดเห็น