CodeTemplates/impl_pyside2.py.tmpl

changeset 6291
94e0e688dcad
parent 4484
5c9952e29895
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CodeTemplates/impl_pyside2.py.tmpl	Tue May 15 19:39:46 2018 +0200
@@ -0,0 +1,25 @@
+# -*- coding: utf-8 -*-
+
+"""
+Module implementing $CLASSNAME$.
+"""
+
+from PySide2.QtCore import Slot
+from PySide2.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