推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
shinerene
V2EX  ›  Python

python的GUI库

  •  
  •   shinerene ·
    Xiechen · Apr 20, 2013 · 8274 views
    This topic created in 4950 days ago, the information mentioned may be changed or developed.
    不知道各位都用什么GUI库呢?wxPython还是Tkinter 新手求教了~

    还有自己有了python基础 想要自己做点项目 不是脚本类的那种 是像一个网站或者一个app那样的 有什么可以推荐的参考资料或者项目呢?
    25 replies  •  1970-01-01 08:00:00 +08:00
    phuslu
    phuslu
    Apr 20, 2013 via iPhone
    1
    pyqt
    aisk
    aisk
    Apr 20, 2013
    2
    直接做网站得了。。。
    manoon
    manoon
    Apr 20, 2013
    3
    QT会漂亮些。。。个人愚见。
    shinerene
    shinerene
    OP
    Apr 20, 2013❤️1
    4
    @manoon 话说 头像是本人呀?

    @phuslu 你们说得是同一个东西么?
    shinerene
    shinerene
    OP
    Apr 20, 2013
    5
    @aisk 额 用框架搭还是全部自己写呢?
    timonwong
    timonwong
    Apr 20, 2013
    6
    @shinerene
    Qt 有两个绑定, 一个是PyQt,支持Qt5,历史比较长,开发也比较活跃,就是协议GPL稍显不爽。
    另外一个是 PySide,LGPL协议,自从Nokia不要Qt后社区就不大活跃了。。。,不过写些小程序是没有问题的。。,商业的还是用PyQt。
    shinerene
    shinerene
    OP
    Apr 20, 2013
    7
    @timonwong 这个略复杂啊 还想请教一下 比如说我用python做了个推箱子的游戏 怎么样来让程序识别我输入的上下左右键呢 或者wasd 难道是a = raw_input() if a="w" 然后调用向上的函数?总感觉这样是不对滴啊。。。
    liuzhe
    liuzhe
    Apr 20, 2013
    8
    pyside
    VYSE
    VYSE
    Apr 21, 2013
    9
    Kivy
    aisk
    aisk
    Apr 21, 2013
    10
    @shinerene 显然是用框架啊
    shiweifu
    shiweifu
    Apr 21, 2013
    11
    @shinerene
    你搜索下他头像,有惊喜的哦
    shiweifu
    shiweifu
    Apr 21, 2013
    12
    @shinerene

    这种还是用pygame 什么的吧
    找了一个:
    http://sokoban.cn/py/py.php

    演示:
    shinerene
    shinerene
    OP
    Apr 21, 2013
    13
    @shiweifu 貌似没搜到啊。。。
    shiweifu
    shiweifu
    Apr 21, 2013
    14
    @shinerene

    是不是你点「搜索」的手法不对……
    google 出来第一个就是官方网站啊(貌似需翻墙)
    shinerene
    shinerene
    OP
    Apr 21, 2013
    15
    @phuslu
    @manoon 话说。。我mac os x 用homebrew 装上了 可是import的时候总是提示无法找到QtCore什么的
    hljyunxi
    hljyunxi
    Apr 21, 2013
    16
    wxPython
    Parallel
    Parallel
    Apr 21, 2013
    17
    我倒是推荐Tkinter,个人感觉比较容易上手。
    shinerene
    shinerene
    OP
    Apr 21, 2013
    18
    @Parallel Tk不是据说比较丑陋吗?
    thedevil5032
    thedevil5032
    Apr 23, 2013 via iPad
    19
    就我自己而言,比较倾向于 PyQt。 一,文档很全。二,跨平台。当时我是因为二选择了它,用它做了几个小工具,一直觉得用它写代码挺顺手。
    funcman
    funcman
    Apr 23, 2013
    20
    @shinerene 需要brew安装的python
    但是brew的python不好安装。
    shinerene
    shinerene
    OP
    Apr 23, 2013
    21
    @funcman 嗯 我上python官网下了官方的python274然后根据你另一个回复装了pyqtx 就ok了!
    shinerene
    shinerene
    OP
    Apr 23, 2013
    22
    @thedevil5032 看了下 感觉pyqt也比较美观
    leeyanjie
    leeyanjie
    Apr 23, 2013
    23
    pyqt,pygtk,wxpython。挑一个好了。用web框架做web app其实也可以。
    chchwy
    chchwy
    Apr 23, 2013
    24
    Qt算是最成熟,文檔也最齊全的GUI庫了。只是要看的懂C++的文件就是了。
    shinerene
    shinerene
    OP
    Apr 23, 2013
    25
    @chchwy 嗯 C++感觉问题不大 能看懂

    @leeyanjie 嗯 web框架也在考虑中
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2450 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 12:22 · PVG 20:22 · LAX 04:22 · JFK 07:22
    ♥ Do have faith in what you're doing.