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

我的开源项目 WindowsKeyboardHook:用 Python 注册 Windows 系统级的全局快捷键

  •  1
     
  •   iMath · Dec 21, 2020 · 1780 views
    This topic created in 1975 days ago, the information mentioned may be changed or developed.
    https://github.com/redstoneleo/WindowsKeyboardHook

    目前依赖于 PyQt5 QThread, 欢迎把它改成 Python 的 threading.Thread,把这个项目纯 Python 化!
    Supplement 1  ·  Dec 23, 2020
    已经改成 Python 的 threading.Thread 了
    ysc3839
        1
    ysc3839  
       Dec 21, 2020 via Android
    不明白为什么要起一个新线程去执行函数,你说会卡死怀疑是死锁了。
    以及最下面的消息循环完全是错的,难道不会出现处理完一个消息后就退出的问题?
    iMath
        2
    iMath  
    OP
       Dec 21, 2020
    @ysc3839 起一个新线程去执行函数 是为了防止在 GUI 程序里出现界面卡顿的情况

    “以及最下面的消息循环完全是错的,难道不会出现处理完一个消息后就退出的问题?” 根据我的测试并没有出现这种情况。你觉得错在哪里?求解释说明
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5222 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 07:53 · PVG 15:53 · LAX 00:53 · JFK 03:53
    ♥ Do have faith in what you're doing.