Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

turuofei/wox-python-plugins

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wox-python-plugins

Wox是国人开源的Windows平台下的快速启动神器,基于JSONRPC和插件进行通讯,也支持用Python来编辑插件。

plugins目录

收录了几个使用Python编写的Wox插件

Wox.Plugin.HelloWord

最基础的Wox插件例子,通过h激活插件,输入任意文本,按下回车后,会自动复制到剪贴板

不足之处

如果代码出现了报错,Wox会呆住,没什么反馈,不方便进行错误定位和代码调试

如导入模块名称写错

import pyperclip1

Wox.Plugin.HelloWordEx

HelloWord升级版,加入了报错检测和提醒,日志记录,方便脚本的开发和调试

还是刚刚的错误

import pyperclip1

查看error.log

Tue, 19 Feb 2019 17:33:16 util.py[line:29] ERROR Traceback (most recent call last):
  File "C:\Users\Administrator\AppData\Roaming\Wox\Plugins\Hello World Ex-991dfc7a-7c37-41f7-8e63-273f83c9680f\util.py", line 35, in load_module
    yield
  File "C:\Users\Administrator\AppData\Roaming\Wox\Plugins\Hello World Ex-991dfc7a-7c37-41f7-8e63-273f83c9680f\main.py", line 7, in <module>
    import pyperclip1
ModuleNotFoundError: No module named 'pyperclip1'

About

使用Python编写Wox插件

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.