Plugins/UiExtensionPlugins/Translator/TranslatorEngines/GoogleV1Engine.py

changeset 6412
d71b094845e7
parent 6048
82ad8ec9548c
child 6645
ad476851d7e0
equal deleted inserted replaced
6411:7fd9b7ecbcfe 6412:d71b094845e7
10 from __future__ import unicode_literals 10 from __future__ import unicode_literals
11 11
12 import json 12 import json
13 import re 13 import re
14 14
15 from PyQt5.QtCore import QByteArray, QUrl 15 from PyQt5.QtCore import QByteArray, QUrl, QTimer
16 16
17 import Utilities 17 import Utilities
18 18
19 from .TranslationEngine import TranslationEngine 19 from .TranslationEngine import TranslationEngine
20 20
34 34
35 @param plugin reference to the plugin object (TranslatorPlugin) 35 @param plugin reference to the plugin object (TranslatorPlugin)
36 @param parent reference to the parent object (QObject) 36 @param parent reference to the parent object (QObject)
37 """ 37 """
38 super(GoogleV1Engine, self).__init__(plugin, parent) 38 super(GoogleV1Engine, self).__init__(plugin, parent)
39
40 QTimer.singleShot(0, self.availableTranslationsLoaded.emit)
39 41
40 def engineName(self): 42 def engineName(self):
41 """ 43 """
42 Public method to return the name of the engine. 44 Public method to return the name of the engine.
43 45

eric ide

mercurial