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

有沒有 Python 可以寫 Native Mobile Apps 的八卦?

有沒有 Python 可以寫 Native Mobile Apps 的八卦?

Native GUI programming with Python everywhere with Toga!

9dafad54b5b4f360b7aae5f482bc1c91?s=128

Tzu-ping Chung

October 26, 2014
Tweet

More Decks by Tzu-ping Chung

Other Decks in Programming

Transcript

  1. 剤尝剤1ZUIPO〳⟃㻨/BUJWF .PCJMF"QQT涸Ⱄ⽚

  2. Live Demo!!!!1

  3. Me • Call me TP • Follow @uranusjr • https://uranusjr.com

  4. http://macdown.uranusjr.com

  5. IUUQQZCFFPSHUPHB

  6. Python code Platform-dependent implementation Native libraries

  7. Toga • No dependencies • Except a custom interpreter •

    Pure Python • ctypes • Any OS you want • Write your own backend
  8. Your code Native libraries Toga implementation Toga

  9. Your code Foundation + UIKit + … Toga-iOS + Rubicon-ObjC

    Toga
  10. Live Coding!!!!1

  11. Cassowary

  12. None
  13. Cassowary • Constraint-solving • Foundation of Auto Layout • Other

    implementations available
  14. 50 50 50 50 or more

  15. container.constrain(          button.TOP  ==  container.TOP  +  50,

             button.LEADING  ==  container.LEADING  +  50,          button.TRAILING  +  50  ==  container.TRAILING,          button.BOTTOM  +  50  <=  container.BOTTOM,   )
  16. Join the Conversation • https://github.com/pybee • https://groups.google.com/forum/#!forum/beeware-users • https://groups.google.com/forum/#!forum/beeware-developers •

    https://groups.google.com/forum/#!forum/overconstrained • https://twitter.com/pybeeware