python&gui
Post on 23-Jan-2017
185 Views
Preview:
TRANSCRIPT
Python & GUI
Hepo @2015
evolution of the desk
GUIuser
interface
通过设计的手段,提高信息控制过程的操作密度(高效、用户体验)
Cross Platform ?
No Silver Bullet
cross platform ≈ print(‘hello world’) in GUI way
Platforms
different icons, different events, different systems, different ways to package app.
Platforms
Cross Platform is Not Important
set webkit as an example: MacGap & nw.js
have a frame first, but you need more packages.
Why Python ?
My Solutions and Reasons
长 . 话 . 短 . 说
Frame
Qt & PyQt. and why?
UI
Qt Creator, pyuic5. why not Qt Quick?
Package App
py2app py2exe + Inno Setup pyinstaller
Patches & Utils
auto compiler, single instance limit, cross-platforms utils .etc
放 弃
。。。
Thinking in GUI way
Events / Signals / Async
connected
1,downloading 2, tell process bar 3, when finished
Layout & Style
scrollbar
context
resizescroll
Some Tech Details
packages to package
源码保护
• packages to zip
• merge zip into a .py file & auto imported
• convert the .py file into .c file by Cython
• .c file > python package by Cython.Distutils
• remove related pyc/pyo files in site-package.zip
• run in your GUI app: import `package`
it works
on others’ Macs
。。。
请保持想象
think more . . .
Run Flask in GUI App
Why not MongoDB?
Why not filesystem?
webp
。。。
Marketing
。。。
制作产品视频
ScreenFlow + 单反 + 三脚架
关 于 版 权
买授权、买素材、尊重但别用GPL的 . . .
App主页 & 销售平台
靠山吃山 FarBox . . .
关 于 客 服
与你的用户保持一定的距离
。。。
Review
GUI, 更高效、体验更好
大家都能跨,那么跨平台就已经不重要了
一个成熟、持续维护的框架,以及自己积累的utils
GUI的思考方式:异步、关联、Layout .etc
GUI是一种设计边界的解放,要放肆想象
保护源码
Market: 需求产生利润,设计产生品牌
时间最宝贵
相信自己
相信Python
top related