Skip to content

Commit

Permalink
Merge pull request #1 from kevin5871:test
Browse files Browse the repository at this point in the history
major fixes
  • Loading branch information
kevin5871 authored May 21, 2023
2 parents 85c75dc + e0e0956 commit d937f00
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def mainGUI() :
#root.attributes('-disabled', True)
root.geometry('400x400')
Label(root, text="RealTTRs", font=('Arial',25)).place(x=10, y=10)
Label(root, text="v 1.0.0", font=('Arial', 10)).place(x=340,y=375)
Label(root, text="v 1.0.1", font=('Arial', 10)).place(x=340,y=375)
Label(root, text="▶ Functions", font=('Arial', 10)).place(x=10, y=70)
Button(root, text="Edit Area", command=lambda:capGUI()).place(x=50, y=100)
Button(root, text="ScreenShot Test", command=lambda:Screenshot_Test()).place(x=230, y=100)
Expand Down
11 changes: 7 additions & 4 deletions translate.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,11 @@ def getKey() :
txt = response.text
txt = txt.split("\n")
links = list()
#print(len(txt))
txt = txt[1]
#print(txt, len(txt))
for i in range(0, len(txt)) :
if "If you're" in txt[i] :
txt = txt[i]

txt = txt.split(" ")
for i in range(0, len(txt)) :
if 'main' in txt[i] and 'src' in txt[i] :
Expand All @@ -84,7 +87,6 @@ def getKey() :
links[i] = links[i].replace('src="', '')
links[i] = links[i].replace('"','')


for i in range(0, len(links)) :
URL = 'http://papago.naver.com' + links[i]
response = requests.get(URL)
Expand All @@ -110,4 +112,5 @@ def getKey() :


if __name__ == "__main__" :
print(Trans("hello it's me mario", "en", "ko", getKey()))
string = str(input())
print(Trans(string, "ko", "en", getKey()))

0 comments on commit d937f00

Please sign in to comment.