Updated the dialog code templates to user 'super()'. eric7

Tue, 08 Jun 2021 19:29:24 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 08 Jun 2021 19:29:24 +0200
branch
eric7
changeset 8411
da70caa2246d
parent 8410
f8d97f05f883
child 8412
16e8c2896469

Updated the dialog code templates to user 'super()'.

eric7/CodeTemplates/impl_pyqt5.py.tmpl file | annotate | diff | comparison | revisions
eric7/CodeTemplates/impl_pyqt6.py.tmpl file | annotate | diff | comparison | revisions
eric7/CodeTemplates/impl_pyside2.py.tmpl file | annotate | diff | comparison | revisions
eric7/CodeTemplates/impl_pyside6.py.tmpl file | annotate | diff | comparison | revisions
--- a/eric7/CodeTemplates/impl_pyqt5.py.tmpl	Mon Jun 07 19:58:54 2021 +0200
+++ b/eric7/CodeTemplates/impl_pyqt5.py.tmpl	Tue Jun 08 19:29:24 2021 +0200
@@ -21,5 +21,5 @@
         @param parent reference to the parent widget (defaults to None)
         @type QWidget (optional)
         """
-        super($CLASSNAME$, self).__init__(parent)
+        super().__init__(parent)
         self.setupUi(self)
--- a/eric7/CodeTemplates/impl_pyqt6.py.tmpl	Mon Jun 07 19:58:54 2021 +0200
+++ b/eric7/CodeTemplates/impl_pyqt6.py.tmpl	Tue Jun 08 19:29:24 2021 +0200
@@ -21,5 +21,5 @@
         @param parent reference to the parent widget (defaults to None)
         @type QWidget (optional)
         """
-        super($CLASSNAME$, self).__init__(parent)
+        super().__init__(parent)
         self.setupUi(self)
--- a/eric7/CodeTemplates/impl_pyside2.py.tmpl	Mon Jun 07 19:58:54 2021 +0200
+++ b/eric7/CodeTemplates/impl_pyside2.py.tmpl	Tue Jun 08 19:29:24 2021 +0200
@@ -21,5 +21,5 @@
         @param parent reference to the parent widget (defaults to None)
         @type QWidget (optional)
         """
-        super($CLASSNAME$, self).__init__(parent)
+        super().__init__(parent)
         self.setupUi(self)
--- a/eric7/CodeTemplates/impl_pyside6.py.tmpl	Mon Jun 07 19:58:54 2021 +0200
+++ b/eric7/CodeTemplates/impl_pyside6.py.tmpl	Tue Jun 08 19:29:24 2021 +0200
@@ -21,5 +21,5 @@
         @param parent reference to the parent widget (defaults to None)
         @type QWidget (optional)
         """
-        super($CLASSNAME$, self).__init__(parent)
+        super().__init__(parent)
         self.setupUi(self)

eric ide

mercurial