You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
431 B

from translate import Translator
import pynput
from pynput.keyboard import Key, Controller
import pyclip
from notify import notification
keyboard = Controller()
translator = Translator(to_lang="ru")
with keyboard.pressed(Key.ctrl):'c')
result = translator.translate(pyclip.paste(text=True))
notification('Перевод на русский:', message=result, app_name='Born2copy')