-
Based on Baidu API.
-
Two modes: Manual or Automatic.
-
As for AUTO, you can use the Mouse swipe to select words or use the Keyboard Ctrl+C shortcut keys to translate. (use switch BUTTON to change)
-
The global selection of words depends on the operation of the clipboard, which is not supported by some software, so you can choose to use the keyboard.
-
First you need to have your own Baidu Translation ID and KEY: Tutorials
-
Then replace the code:
gui = GUI(appid='your_id', key='your_key')
-
Finally, run
translator.py
have fun.🥳🥳