Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/geekcomputers/Python
/ translate
Function
translate
Translator/translator.py:6–9 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
4
5
# Translator function
6
def
translate():
7
translator = Translator(from_lang=lan1.get(), to_lang=lan2.get())
8
translation = translator.translate(var.get())
9
var1.set(translation)
10
11
12
# Tkinter root Window with title
Callers
nothing calls this directly
Calls
2
set
Method · 0.80
get
Method · 0.45
Tested by
no test coverage detected