Home
Sign Up
Sign In
推荐学习书目
›
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
V2EX
›
Python
我的开源项目 WindowsKeyboardHook:用 Python 注册 Windows 系统级的全局快捷键
1
iMath
·
Dec 21, 2020
· 1982 views
This topic created in 2067 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 了
Python
pyqt5
qthread
thread
2 replies
1
ysc3839
Dec 21, 2020 via Android
不明白为什么要起一个新线程去执行函数,你说会卡死怀疑是死锁了。
以及最下面的消息循环完全是错的,难道不会出现处理完一个消息后就退出的问题?
2
iMath
OP
Dec 21, 2020
@
ysc3839
起一个新线程去执行函数 是为了防止在 GUI 程序里出现界面卡顿的情况
“以及最下面的消息循环完全是错的,难道不会出现处理完一个消息后就退出的问题?” 根据我的测试并没有出现这种情况。你觉得错在哪里?求解释说明
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
3082 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 468ms ·
UTC 14:14
·
PVG 22:14
·
LAX 07:14
·
JFK 10:14
♥ Do have faith in what you're doing.
❯