eric6/CodeTemplates/impl_pyside6.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).

7911
4621c9082a43 Added support for PySide6.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1 # -*- coding: utf-8 -*-
4621c9082a43 Added support for PySide6.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
2
4621c9082a43 Added support for PySide6.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
3 """
4621c9082a43 Added support for PySide6.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
4 Module implementing $CLASSNAME$.
4621c9082a43 Added support for PySide6.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
5 """
4621c9082a43 Added support for PySide6.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
6
4621c9082a43 Added support for PySide6.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
7 from PySide6.QtCore import Slot
4621c9082a43 Added support for PySide6.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
8 from PySide6.QtWidgets import $SUPERCLASS$
4621c9082a43 Added support for PySide6.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
9
4621c9082a43 Added support for PySide6.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
10 from .Ui_$FORMFILE$ import Ui_$FORMCLASS$
4621c9082a43 Added support for PySide6.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
11
4621c9082a43 Added support for PySide6.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
12
4621c9082a43 Added support for PySide6.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
13 class $CLASSNAME$($SUPERCLASS$, Ui_$FORMCLASS$):
4621c9082a43 Added support for PySide6.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
14 """
4621c9082a43 Added support for PySide6.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
15 Class documentation goes here.
4621c9082a43 Added support for PySide6.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
16 """
4621c9082a43 Added support for PySide6.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
17 def __init__(self, parent=None):
4621c9082a43 Added support for PySide6.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
18 """
4621c9082a43 Added support for PySide6.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
19 Constructor
4621c9082a43 Added support for PySide6.
Detlev Offenbach <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: 7911
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: 7911
diff changeset
22 @type QWidget (optional)
7911
4621c9082a43 Added support for PySide6.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
23 """
4621c9082a43 Added support for PySide6.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
24 super($CLASSNAME$, self).__init__(parent)
4621c9082a43 Added support for PySide6.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
25 self.setupUi(self)

eric ide

mercurial