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

关于 Python Qt 的一个问题

  •  
  •   zeroDev · Aug 20, 2018 via Android · 3873 views
    This topic created in 2958 days ago, the information mentioned may be changed or developed.

    在一个 Python 程序中输入数据 然后输入的数据立即在 pyqt 界面上显示出来, 应该怎么做呢?

    4 replies  •  2018-08-20 23:44:44 +08:00
    4u1kto
        1
    4u1kto  
       Aug 20, 2018
    CLI 输入 pyqt 输出?没见过,觉得应该不太好实现。
    bxqqq
        2
    bxqqq  
       Aug 20, 2018   ❤️ 1
    控件都有相应的 show 方法,至于 python 程序输入,如果是控件输入的 /控制台输入,就获取这个文本,然后调用到控件的 show 方法。
    iismark2018
        3
    iismark2018  
       Aug 20, 2018   ❤️ 1
    重定向输出,通过发射信号来输出 print,看我帖子有源码!
    chengxiao
        4
    chengxiao  
       Aug 20, 2018 via iPhone
    之前也有类似的小东西做,后来发现 QT 东西太多了,直接用 tkinter 写了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2556 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 12:27 · PVG 20:27 · LAX 05:27 · JFK 08:27
    ♥ Do have faith in what you're doing.