推荐学习书目
› 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
manoon
V2EX  ›  Python

被逼的用PYQT写个图形界面。然后呢,功能基本实现了。交互也实现了。就是白屏。

  •  
  •   manoon · Aug 4, 2013 · 6447 views
    This topic created in 4803 days ago, the information mentioned may be changed or developed.
    因为后台运行的时间比较长。大概一个按钮下去得跑了十分钟吧。

    所以前台的界面就白屏了。------------当另外一个按钮按下去,只工作30s的时候。一切正常。

    用的pyqt,IDE是eric4

    请问一下,是不是有refresh或者recanvas这样的命令需要使用呢?记得pygame里面有这样的东东。
    Supplement 1  ·  Aug 6, 2013
    坑死爹了~~~

    多线程里面关于
    run
    start
    这样的方法名居然不能随便改~~~~!!!!!折腾了好半个多小时。才发现。
    5 replies  •  1970-01-01 08:00:00 +08:00
    ruoyu0088
        1
    ruoyu0088  
       Aug 4, 2013   ❤️ 1
    应该用多线程。如果你非常不想用多线程,可以在等待循环中调用QCoreApplication.processEvents()处理窗口的事件。
    bradlee
        2
    bradlee  
       Aug 4, 2013   ❤️ 1
    楼主你没 export QWS_KEYBOARD=字符设备驱动路径吧?
    manoon
        3
    manoon  
    OP
       Aug 4, 2013
    @ruoyu0088
    @bradlee

    have a try
    thanks!
    manoon
        4
    manoon  
    OP
       Aug 6, 2013
    @bradlee 我用的是windows
    manoon
        5
    manoon  
    OP
       Aug 6, 2013
    再次感谢~~~已经完全搞定了。
    参考的这篇文档。
    http://wenku.baidu.com/view/301cb4212f60ddccda38a055.html
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   843 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 22:22 · PVG 06:22 · LAX 15:22 · JFK 18:22
    ♥ Do have faith in what you're doing.