Skip to content

mthanh/clipboard_google_translate

Repository files navigation

clipboard translate google python


This is a simple sample about google translate copy text. Select any text and copy them, it will automatically translate for you. It is using tkinter gui. It may currently working only on Windows.

  1. translate from browser

Alt text

  1. translate from pdf

Alt text

  1. translate from pdf + REMOVE_ENTER_PDF

Alt text

  1. put text into the window

Alt text

Note : Translate google

https://stackoverflow.com/questions/52455774/googletrans-stopped-working-with-error-nonetype-object-has-no-attribute-group

$ pip install googletrans==3.1.0a0

A. Setup

1. Install Python3.x (If python3 is not installed yet)

  • Check if python is installed?
$ python --version
$ python3 --version

Alt text

=> use python3

2. Install pip3 (If pip3 is not installed yet)

  • Check if pip3 is installed?
$ pip3 --version

Alt text

  • If not installed --> try this below
$ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
$ python3 get-pip.py

3. Install pakages from requirement.txt

$ cd <Path to Project>
$ pip3 install -r requirements.txt
# for developer : create requirements.txt
$ pipreqs . --force

4. Install setup from setup.py

$ cd <Path to Project>
$ python3 setup.py install

B. Run

5. Run and build

  1. run by double click main.exe inside dist. (need to do 6. first)
  2. using cmd "python3 PATH/main.py"
  3. build by using pycharm, eclipse or something else

6. Deploy to application

$ cd <Path to Project>

#reset
$ rm -rf build/ dist/

# build
$ pyinstaller <Path to src>/main.py

# or
$ pyinstaller pano_app.spec
# or
$ yes | pyinstaller pano_app.spec

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages