CodeTemplates/impl_pyqt.py2.tmpl

changeset 1139
b18376d58832
child 4484
5c9952e29895
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CodeTemplates/impl_pyqt.py2.tmpl	Tue Jun 28 09:19:18 2011 +0200
@@ -0,0 +1,24 @@
+# -*- coding: utf-8 -*-
+
+"""
+Module implementing $CLASSNAME$.
+"""
+
+from PyQt4.QtCore import pyqtSignature
+from PyQt4.QtGui 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 (QWidget)
+        """
+        $SUPERCLASS$.__init__(self, parent)
+        self.setupUi(self)

eric ide

mercurial