CodeTemplates/impl_pyqt.py2.tmpl

Sat, 07 Apr 2012 21:19:24 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 07 Apr 2012 21:19:24 +0200
changeset 1770
c17e67e69ef5
parent 1139
b18376d58832
child 4484
5c9952e29895
permissions
-rw-r--r--

Added a tool to take screenshots (fullscreen or rectangular selection).

1139
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
1 # -*- coding: utf-8 -*-
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
2
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
3 """
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
4 Module implementing $CLASSNAME$.
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
5 """
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
6
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
7 from PyQt4.QtCore import pyqtSignature
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
8 from PyQt4.QtGui import $SUPERCLASS$
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
9
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
10 from .Ui_$FORMFILE$ import Ui_$FORMCLASS$
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
11
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
12
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
13 class $CLASSNAME$($SUPERCLASS$, Ui_$FORMCLASS$):
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
14 """
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
15 Class documentation goes here.
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
16 """
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
17 def __init__(self, parent=None):
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
18 """
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
19 Constructor
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
20
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
21 @param parent reference to the parent widget (QWidget)
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
22 """
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
23 $SUPERCLASS$.__init__(self, parent)
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
24 self.setupUi(self)

eric ide

mercurial