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

branch
eric7
changeset 10437
2f70ca07f0af
parent 10061
8bdad5699288
child 10439
21c28b0f9e41
equal deleted inserted replaced
10436:f6881d10e995 10437:2f70ca07f0af
36 36
37 def __init__(self, parent=None): 37 def __init__(self, parent=None):
38 """ 38 """
39 Constructor 39 Constructor
40 40
41 @param parent reference to the parent widget (QWidget) 41 @param parent reference to the parent widget
42 @type QWidget
42 """ 43 """
43 super().__init__(parent) 44 super().__init__(parent)
44 self.setupUi(self) 45 self.setupUi(self)
45 46
46 self.dataTabWidget.setCurrentIndex(0) 47 self.dataTabWidget.setCurrentIndex(0)
123 124
124 def getCode(self): 125 def getCode(self):
125 """ 126 """
126 Public method to get the source code. 127 Public method to get the source code.
127 128
128 @return generated code (string) 129 @return generated code
130 @rtype str
129 """ 131 """
130 templateData = { 132 templateData = {
131 "year": QDate.currentDate().year(), 133 "year": QDate.currentDate().year(),
132 "author": self.authorEdit.text(), 134 "author": self.authorEdit.text(),
133 "email": self.authorEmailEdit.text(), 135 "email": self.authorEmailEdit.text(),
195 197
196 def packageName(self): 198 def packageName(self):
197 """ 199 """
198 Public method to retrieve the plug-in package name. 200 Public method to retrieve the plug-in package name.
199 201
200 @return plug-in package name (string) 202 @return plug-in package name
203 @rtype str
201 """ 204 """
202 if self.createPackageCheckBox.isChecked(): 205 if self.createPackageCheckBox.isChecked():
203 return self.packageNameEdit.text() 206 return self.packageNameEdit.text()
204 else: 207 else:
205 return "" 208 return ""
207 @pyqtSlot(str) 210 @pyqtSlot(str)
208 def on_pluginTypeCombo_currentTextChanged(self, txt): 211 def on_pluginTypeCombo_currentTextChanged(self, txt):
209 """ 212 """
210 Private slot to react upon the selection of a plug-in type. 213 Private slot to react upon the selection of a plug-in type.
211 214
212 @param txt selected plug-in type (string) 215 @param txt selected plug-in type
216 @type str
213 """ 217 """
214 self.pixmapCheckBox.setChecked(txt == "viewmanager") 218 self.pixmapCheckBox.setChecked(txt == "viewmanager")

eric ide

mercurial