eric6/CodeTemplates/impl_pyqt6.py.tmpl

changeset 7907
7991ea245c20
child 8033
21fd39d6a6ee
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/eric6/CodeTemplates/impl_pyqt6.py.tmpl	Tue Dec 22 19:59:29 2020 +0100
@@ -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
+        @type QWidget
+        """
+        super($CLASSNAME$, self).__init__(parent)
+        self.setupUi(self)

eric ide

mercurial