src/eric7/CodeTemplates/impl_pyqt6.py.tmpl

branch
eric7
changeset 9209
b99e7fd55fd3
parent 8411
da70caa2246d
child 9423
f30b9e9819cc
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/eric7/CodeTemplates/impl_pyqt6.py.tmpl	Thu Jul 07 11:23:56 2022 +0200
@@ -0,0 +1,25 @@
+# -*- coding: utf-8 -*-
+
+"""
+Module implementing $CLASSNAME$.
+"""
+
+from PyQt6.QtCore import pyqtSlot
+from PyQt6.QtWidgets import $SUPERCLASS$
+
+from .Ui_$FORMFILE$ import Ui_$FORMCLASS$
+
+
+class $CLASSNAME$($SUPERCLASS$, Ui_$FORMCLASS$):
+    """
+    Class documentation goes here.
+    """
+    def __init__(self, parent=None):
+        """
+        Constructor
+        
+        @param parent reference to the parent widget (defaults to None)
+        @type QWidget (optional)
+        """
+        super().__init__(parent)
+        self.setupUi(self)

eric ide

mercurial