10799:7f5228900da5 | 10800:c6ce5522be30 |
---|---|
14 | 14 |
15 """ | 15 """ |
16 Module documentation goes here. | 16 Module documentation goes here. |
17 """ | 17 """ |
18 | 18 |
19 {apiImports}\ | |
19 from PyQt6.QtCore import QObject | 20 from PyQt6.QtCore import QObject |
20 | 21 |
21 {config0}\ | 22 {config0}\ |
22 # Start-Of-Header | 23 # Start-Of-Header |
23 __header__ = {{ | 24 __header__ = {{ |
44 {modulesetup}\ | 45 {modulesetup}\ |
45 {exeData}\ | 46 {exeData}\ |
46 {apiFiles}\ | 47 {apiFiles}\ |
47 {preview}\ | 48 {preview}\ |
48 {config1}\ | 49 {config1}\ |
50 {clearPrivateData}\ | |
49 class {className}(QObject): | 51 class {className}(QObject): |
50 """ | 52 """ |
51 Class documentation goes here. | 53 Class documentation goes here. |
52 """ | 54 """ |
53 | 55 |
84 | 86 |
85 configTemplate0 = """from eric7 import Preferences | 87 configTemplate0 = """from eric7 import Preferences |
86 | 88 |
87 """ | 89 """ |
88 | 90 |
89 configTemplate1 = '''def getConfigData(): | 91 configTemplate1 = '''def pageCreationFunction(configDlg): |
92 """ | |
93 Function to create the Translator configuration page. | |
94 | |
95 @param configDlg reference to the configuration dialog | |
96 @type ConfigurationWidget | |
97 @return reference to the configuration page | |
98 @rtype TranslatorPage | |
99 """ | |
100 page = None # change this line to create the configuration page | |
101 return page | |
102 | |
103 | |
104 def getConfigData(): | |
90 """ | 105 """ |
91 Function returning data as required by the configuration dialog. | 106 Function returning data as required by the configuration dialog. |
92 | 107 |
93 @return dictionary containing the relevant data | 108 @return dictionary containing the relevant data |
94 @rtype dict | 109 @rtype dict |
263 return apis | 278 return apis |
264 | 279 |
265 | 280 |
266 ''' | 281 ''' |
267 | 282 |
283 apiImportsTemplate = '''import glob | |
284 import os | |
285 | |
286 ''' | |
287 | |
268 installDependenciesTemplate = ''' | 288 installDependenciesTemplate = ''' |
269 | 289 |
270 def installDependencies(pipInstall): | 290 def installDependencies(pipInstall): |
271 """ | 291 """ |
272 Function to install dependencies of this plug-in. | 292 Function to install dependencies of this plug-in. |
275 @type function | 295 @type function |
276 """ | 296 """ |
277 pass | 297 pass |
278 ''' | 298 ''' |
279 | 299 |
300 clearPrivateDataTemplate = '''def clearPrivateData(): | |
301 """ | |
302 Function to clear the private data of the plug-in. | |
303 """ | |
304 pass | |
305 | |
306 | |
307 ''' | |
308 | |
280 # | 309 # |
281 # eflag: noqa = M841 | 310 # eflag: noqa = M841 |