Plugins/UiExtensionPlugins/Translator/TranslatorEngines/GoogleV2Engine.py

changeset 6412
d71b094845e7
parent 6048
82ad8ec9548c
child 6470
5fe5ea985237
equal deleted inserted replaced
6411:7fd9b7ecbcfe 6412:d71b094845e7
9 9
10 from __future__ import unicode_literals 10 from __future__ import unicode_literals
11 11
12 import json 12 import json
13 13
14 from PyQt5.QtCore import QUrl 14 from PyQt5.QtCore import QUrl, QTimer
15 15
16 from .TranslationEngine import TranslationEngine 16 from .TranslationEngine import TranslationEngine
17 17
18 18
19 class GoogleV2Engine(TranslationEngine): 19 class GoogleV2Engine(TranslationEngine):
29 29
30 @param plugin reference to the plugin object (TranslatorPlugin) 30 @param plugin reference to the plugin object (TranslatorPlugin)
31 @param parent reference to the parent object (QObject) 31 @param parent reference to the parent object (QObject)
32 """ 32 """
33 super(GoogleV2Engine, self).__init__(plugin, parent) 33 super(GoogleV2Engine, self).__init__(plugin, parent)
34
35 QTimer.singleShot(0, self.availableTranslationsLoaded.emit)
34 36
35 def engineName(self): 37 def engineName(self):
36 """ 38 """
37 Public method to return the name of the engine. 39 Public method to return the name of the engine.
38 40

eric ide

mercurial