eric6/CodeTemplates/impl_pyside2.py.tmpl

Sat, 27 Feb 2021 12:08:23 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 27 Feb 2021 12:08:23 +0100
changeset 8138
169e65a6787c
parent 8033
21fd39d6a6ee
permissions
-rw-r--r--

Shell: added functionality to show a prompt when the main client process has exited (e.g. a script ended).

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
8033
21fd39d6a6ee Modified the code templates with respect to the constructor docstrings.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 6942
diff changeset
21 @param parent reference to the parent widget (defaults to None)
21fd39d6a6ee Modified the code templates with respect to the constructor docstrings.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 6942
diff changeset
22 @type QWidget (optional)
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