eric6/CodeTemplates/impl_pyqt.py.tmpl

Mon, 15 Apr 2019 19:53:29 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 15 Apr 2019 19:53:29 +0200
branch
setup.py
changeset 6949
a5255f1ba3f0
parent 6942
2602857055c5
permissions
-rw-r--r--

setup.py: continued implementing support for setup.py.

0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1 # -*- coding: utf-8 -*-
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
2
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
3 """
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
4 Module implementing $CLASSNAME$.
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
5 """
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
6
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
7 from PyQt4.QtCore import pyqtSlot
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
8 from PyQt4.QtGui import $SUPERCLASS$
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
9
74
f0c0e4638a0f Corrected the import statement in the dialog code template.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 0
diff changeset
10 from .Ui_$FORMFILE$ import Ui_$FORMCLASS$
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
11
1010
06393b5f5330 Made the template PEP-8 compliant.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 977
diff changeset
12
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
13 class $CLASSNAME$($SUPERCLASS$, Ui_$FORMCLASS$):
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
14 """
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
15 Class documentation goes here.
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
16 """
977
7a523bd4b00d Corrected the dialog code template to adhere to PEP 8.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 370
diff changeset
17 def __init__(self, parent=None):
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
18 """
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
19 Constructor
370
0c137bb40ac7 Added source docu for the constructor to the form code template.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 74
diff changeset
20
4484
5c9952e29895 Changed the dialog code generation templates to support the updated source documentation system.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 3867
diff changeset
21 @param parent reference to the parent widget
5c9952e29895 Changed the dialog code generation templates to support the updated source documentation system.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 3867
diff changeset
22 @type QWidget
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
23 """
3867
5817141137fb Modified the code templates used by the dialog code generator.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1139
diff changeset
24 super($CLASSNAME$, self).__init__(parent)
0
de9c2efb9d02 Started porting eric4 to Python3
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
25 self.setupUi(self)

eric ide

mercurial