码迷,mamicode.com
首页 > 其他好文 > 详细

CopyTranslator

时间:2018-05-19 14:44:37      阅读:2261      评论:0      收藏:0      [点我收藏+]

标签:python 2   wxpython   paste   tools   ack   please   creat   install   ati   

技术分享图片 技术分享图片 技术分享图片 技术分享图片 技术分享图片

Copy, Translate, and Paste with Google translate API

Get started

Environment

  • Python 2.7 or Python 3 and higher

Requirements

Only windows can automatically install wxpython using pip, in other OS you need to install wxpython manually.

Windows

  • pip

In windows, pip can help install all the install requirements.

Unbuntu or other Linux release with GUI

  • pip
  • wxpython
  • xclip

In linux, wxpython can‘t be installed using pip, and we need xclip to help pyperclip work.

Here are the example to install the requirements

sudo apt-get install python-wxtools 
sudo apt-get install xclip

For more information, refer to the installation of wxpython and pyperclip

OS X

  • wxpython
  • pip

In OS X, wxpython can‘t be installed using pip.

Please refer to the installation of wxpython.

It has not been tested yet. If someone had tried, please create a PR to help improve the documentation.

Setup

Install this Application using pip:

pip install CopyTranslator

Example usage

Run shell command

CopyTranslator

Screenshots

Windows 10

技术分享图片

Unbuntu

技术分享图片

Source

https://github.com/agentzheng/CopyTranslator

Acknowledgements

Thanks to the developers of wxpython, googletrans, pyperclip.

License

The code is licensed under Mozilla Public License 2.0.

CopyTranslator

标签:python 2   wxpython   paste   tools   ack   please   creat   install   ati   

原文地址:https://www.cnblogs.com/elliottzheng/p/9060159.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有 京ICP备13008772号-2
迷上了代码!