Modified the code templates used by the dialog code generator.

Mon, 13 Oct 2014 20:04:36 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 13 Oct 2014 20:04:36 +0200
changeset 3867
5817141137fb
parent 3865
425bce508cf4
child 3870
4c59b3e13ede

Modified the code templates used by the dialog code generator.

CodeTemplates/impl_pyqt.py.tmpl file | annotate | diff | comparison | revisions
CodeTemplates/impl_pyqt5.py.tmpl file | annotate | diff | comparison | revisions
CodeTemplates/impl_pyqt5.py2.tmpl file | annotate | diff | comparison | revisions
--- a/CodeTemplates/impl_pyqt.py.tmpl	Sun Oct 12 17:03:59 2014 +0200
+++ b/CodeTemplates/impl_pyqt.py.tmpl	Mon Oct 13 20:04:36 2014 +0200
@@ -20,5 +20,5 @@
         
         @param parent reference to the parent widget (QWidget)
         """
-        super().__init__(parent)
+        super($CLASSNAME$, self).__init__(parent)
         self.setupUi(self)
--- a/CodeTemplates/impl_pyqt5.py.tmpl	Sun Oct 12 17:03:59 2014 +0200
+++ b/CodeTemplates/impl_pyqt5.py.tmpl	Mon Oct 13 20:04:36 2014 +0200
@@ -20,5 +20,5 @@
         
         @param parent reference to the parent widget (QWidget)
         """
-        super().__init__(parent)
+        super($CLASSNAME$, self).__init__(parent)
         self.setupUi(self)
--- a/CodeTemplates/impl_pyqt5.py2.tmpl	Sun Oct 12 17:03:59 2014 +0200
+++ b/CodeTemplates/impl_pyqt5.py2.tmpl	Mon Oct 13 20:04:36 2014 +0200
@@ -20,5 +20,5 @@
         
         @param parent reference to the parent widget (QWidget)
         """
-        super($SUPERCLASS$, self).__init__(parent)
+        super($CLASSNAME$, self).__init__(parent)
         self.setupUi(self)

eric ide

mercurial