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.
- translate from browser
- translate from pdf
- translate from pdf + REMOVE_ENTER_PDF
- put text into the window
$ pip install googletrans==3.1.0a0
- Check if python is installed?
$ python --version
$ python3 --version
=> use python3
- If not installed --> Download here https://www.python.org/downloads/
- Check if pip3 is installed?
$ pip3 --version
- If not installed --> try this below
$ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
$ python3 get-pip.py
$ cd <Path to Project>
$ pip3 install -r requirements.txt
# for developer : create requirements.txt
$ pipreqs . --force
$ cd <Path to Project>
$ python3 setup.py install
- run by double click main.exe inside dist. (need to do 6. first)
- using cmd "python3 PATH/main.py"
- build by using pycharm, eclipse or something else
$ 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