eric6/CodeTemplates/impl_pyside2.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
child 8033
21fd39d6a6ee
permissions
-rw-r--r--

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

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
6291
94e0e688dcad PySide2 support: started to implement support for PySide2.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4484
diff changeset
7 from PySide2.QtCore import Slot
94e0e688dcad PySide2 support: started to implement support for PySide2.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4484
diff changeset
8 from PySide2.QtWidgets import $SUPERCLASS$
1139
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
4484
5c9952e29895 Changed the dialog code generation templates to support the updated source documentation system.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1862
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: 1862
diff changeset
22 @type QWidget
1139
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
23 """
6291
94e0e688dcad PySide2 support: started to implement support for PySide2.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4484
diff changeset
24 super($CLASSNAME$, self).__init__(parent)
1139
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
25 self.setupUi(self)

eric ide

mercurial