src/eric7/Plugins/WizardPlugins/EricPluginWizard/Templates.py

branch
eric7
changeset 10800
c6ce5522be30
parent 10797
81f885140d2b
child 10807
4bcd4e08418f
diff -r 7f5228900da5 -r c6ce5522be30 src/eric7/Plugins/WizardPlugins/EricPluginWizard/Templates.py
--- a/src/eric7/Plugins/WizardPlugins/EricPluginWizard/Templates.py	Tue Jun 25 12:30:47 2024 +0200
+++ b/src/eric7/Plugins/WizardPlugins/EricPluginWizard/Templates.py	Tue Jun 25 14:44:19 2024 +0200
@@ -16,6 +16,7 @@
 Module documentation goes here.
 """
 
+{apiImports}\
 from PyQt6.QtCore import QObject
 
 {config0}\
@@ -46,6 +47,7 @@
 {apiFiles}\
 {preview}\
 {config1}\
+{clearPrivateData}\
 class {className}(QObject):
     """
     Class documentation goes here.
@@ -86,7 +88,20 @@
 
 """
 
-configTemplate1 = '''def getConfigData():
+configTemplate1 = '''def pageCreationFunction(configDlg):
+    """
+    Function to create the Translator configuration page.
+
+    @param configDlg reference to the configuration dialog
+    @type ConfigurationWidget
+    @return reference to the configuration page
+    @rtype TranslatorPage
+    """
+    page = None  # change this line to create the configuration page
+    return page
+
+
+def getConfigData():
     """
     Function returning data as required by the configuration dialog.
 
@@ -265,6 +280,11 @@
 
 '''
 
+apiImportsTemplate = '''import glob
+import os
+
+'''
+
 installDependenciesTemplate = '''
 
 def installDependencies(pipInstall):
@@ -277,5 +297,14 @@
     pass
 '''
 
+clearPrivateDataTemplate = '''def clearPrivateData():
+    """
+    Function to clear the private data of the plug-in.
+    """
+    pass
+
+
+'''
+
 #
 # eflag: noqa = M841

eric ide

mercurial