python&gui

62
Python & GUI Hepo @2015

Upload: leo-zhou

Post on 23-Jan-2017

185 views

Category:

Technology


3 download

TRANSCRIPT

Page 1: Python&GUI

Python & GUI

Hepo @2015

Page 2: Python&GUI
Page 3: Python&GUI

evolution of the desk

Page 4: Python&GUI

GUIuser

interface

通过设计的手段,提高信息控制过程的操作密度(高效、用户体验)

Page 5: Python&GUI
Page 6: Python&GUI

Cross Platform ?

Page 7: Python&GUI

No Silver Bullet

cross platform ≈ print(‘hello world’) in GUI way

Page 8: Python&GUI

Platforms

different icons, different events, different systems, different ways to package app.

Page 9: Python&GUI

Platforms

Page 10: Python&GUI

Cross Platform is Not Important

set webkit as an example: MacGap & nw.js

Page 11: Python&GUI

have a frame first, but you need more packages.

Why Python ?

Page 12: Python&GUI
Page 13: Python&GUI
Page 14: Python&GUI

My Solutions and Reasons

长 . 话 . 短 . 说

Page 15: Python&GUI

Frame

Qt & PyQt. and why?

Page 16: Python&GUI

UI

Qt Creator, pyuic5. why not Qt Quick?

Page 17: Python&GUI
Page 18: Python&GUI

Package App

py2app py2exe + Inno Setup pyinstaller

Page 19: Python&GUI

Patches & Utils

auto compiler, single instance limit, cross-platforms utils .etc

Page 20: Python&GUI

放 弃

Page 21: Python&GUI

。。。

Page 22: Python&GUI

Thinking in GUI way

Page 23: Python&GUI

Events / Signals / Async

connected

Page 24: Python&GUI

1,downloading 2, tell process bar 3, when finished

Page 25: Python&GUI

Layout & Style

Page 26: Python&GUI
Page 27: Python&GUI

scrollbar

context

resizescroll

Page 28: Python&GUI

Some Tech Details

Page 29: Python&GUI

packages to package

源码保护

Page 30: Python&GUI

• 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`

Page 31: Python&GUI
Page 32: Python&GUI

it works

on others’ Macs

Page 33: Python&GUI
Page 34: Python&GUI
Page 35: Python&GUI

。。。

Page 36: Python&GUI

请保持想象

think more . . .

Page 37: Python&GUI

Run Flask in GUI App

Page 38: Python&GUI

Why not MongoDB?

Page 39: Python&GUI

Why not filesystem?

Page 40: Python&GUI

webp

Page 41: Python&GUI

。。。

Page 42: Python&GUI

Marketing

Page 43: Python&GUI

。。。

Page 44: Python&GUI

制作产品视频

Page 45: Python&GUI

ScreenFlow + 单反 + 三脚架

Page 46: Python&GUI

关 于 版 权

买授权、买素材、尊重但别用GPL的 . . .

Page 47: Python&GUI

App主页 & 销售平台

靠山吃山 FarBox . . .

Page 48: Python&GUI
Page 49: Python&GUI
Page 50: Python&GUI

关 于 客 服

与你的用户保持一定的距离

Page 51: Python&GUI

。。。

Page 52: Python&GUI

Review

Page 53: Python&GUI

GUI, 更高效、体验更好

Page 54: Python&GUI

大家都能跨,那么跨平台就已经不重要了

Page 55: Python&GUI

一个成熟、持续维护的框架,以及自己积累的utils

Page 56: Python&GUI

GUI的思考方式:异步、关联、Layout .etc

Page 57: Python&GUI

GUI是一种设计边界的解放,要放肆想象

Page 58: Python&GUI

保护源码

Page 59: Python&GUI

Market: 需求产生利润,设计产生品牌

Page 60: Python&GUI

时间最宝贵

Page 61: Python&GUI

相信自己

Page 62: Python&GUI

相信Python