Plugins/UiExtensionPlugins/Translator/TranslatorEngines/MyMemoryEngine.py

changeset 6412
d71b094845e7
parent 6048
82ad8ec9548c
child 6470
5fe5ea985237
equal deleted inserted replaced
6411:7fd9b7ecbcfe 6412:d71b094845e7
13 except NameError: 13 except NameError:
14 pass 14 pass
15 15
16 import json 16 import json
17 17
18 from PyQt5.QtCore import QUrl 18 from PyQt5.QtCore import QUrl, QTimer
19 19
20 from .TranslationEngine import TranslationEngine 20 from .TranslationEngine import TranslationEngine
21 21
22 22
23 class MyMemoryEngine(TranslationEngine): 23 class MyMemoryEngine(TranslationEngine):
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(MyMemoryEngine, self).__init__(plugin, parent) 38 super(MyMemoryEngine, 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