Eric5 doesn't seem to generate dialog code for PySide.<br><br><br>--- CreateDialogCodeDialog.py.orig Sun Apr 29 16:00:36 2012<br>+++ CreateDialogCodeDialog.py Thu May 17 15:15:44 2012<br>@@ -317,8 +317,18 @@<br> tmplName = os.path.join(getConfig('ericCodeTemplatesDir'),<br>
"impl_pyqt.py2.tmpl")<br> else:<br>- tmplName = os.path.join(getConfig('ericCodeTemplatesDir'),<br>+ ################################################### <br>
+ # add PySide case<br>+ # just copy site-packages\eric5\CodeTemplates\impl_pyside.py2.tmpl to impl_pyside.py.tmpl<br>+ # before modifying this code<br>+ if self.project.getProjectType() == "PySide":<br>
+ tmplName = os.path.join(getConfig('ericCodeTemplatesDir'),<br>+ "impl_pyside.py.tmpl")<br>+ else:<br>+ tmplName = os.path.join(getConfig('ericCodeTemplatesDir'),<br>
"impl_pyqt.py.tmpl")<br>+ # End of Modification<br>+ ###################################################<br> tmplFile = open(tmplName, 'r', encoding="utf-8")<br>
template = tmplFile.read()<br> tmplFile.close()<br>@@ -388,7 +398,15 @@<br> else:<br> pyqtSignatureFormat = '@pyqtSignature("{0}")'<br> else:<br>
- pyqtSignatureFormat = '@pyqtSlot({0})'<br>+ ################################################### <br>+ # add PySide case<br>+ # before modifying this code<br>+ if self.project.getProjectType() == "PySide":<br>
+ pyqtSignatureFormat = '@Slot({0})'<br>+ else: <br>+ pyqtSignatureFormat = '@pyqtSlot({0})'<br>+ # End of Modification<br>+ ####################################################<br>
for row in range(self.slotsModel.rowCount()):<br> topItem = self.slotsModel.item(row)<br> for childRow in range(topItem.rowCount()):<br><br><br>jinsuk<br>