-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1afbb9b
commit 1ae826e
Showing
6 changed files
with
21 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,3 +102,4 @@ venv.bak/ | |
|
||
# mypy | ||
.mypy_cache/ | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
certifi==2019.9.11 | ||
chardet==3.0.4 | ||
idna==2.8 | ||
googletrans==3.0.0 | ||
googletrans==3.1.0a0 | ||
urllib3==1.26.5 | ||
xerox==0.4.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import tfc | ||
|
||
from setuptools import setup | ||
|
||
setup(name='tfc', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
from argparse import ArgumentParser | ||
|
||
from .tfc import Translation | ||
|
||
|
||
def main(): | ||
parser = ArgumentParser(description="Simple Translate App From The Clipboard") | ||
parser.add_argument("--dest", help="destination language", default="tr") | ||
parser.add_argument("--src", help="source language", default="auto") | ||
options = parser.parse_args() | ||
|
||
print('TFC listens To Your Clipboard For Translation.') | ||
print('='*50) | ||
|
||
translation = Translation() | ||
translation = Translation(options.dest, options.src) | ||
translation.start() | ||
|
||
|
||
if __name__ == '__main__': | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters