Wed, 19 Oct 2022 17:47:50 +0200
Changed the 'Create Dialog Code Dialog' to adhere to the formatting rules of the 'Black' tool.
1139 | 1 | # -*- coding: utf-8 -*- |
2 | ||
3 | """ | |
4 | Module implementing $CLASSNAME$. | |
5 | """ | |
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 | 9 | |
10 | from .Ui_$FORMFILE$ import Ui_$FORMCLASS$ | |
11 | ||
12 | ||
13 | class $CLASSNAME$($SUPERCLASS$, Ui_$FORMCLASS$): | |
14 | """ | |
15 | Class documentation goes here. | |
16 | """ | |
9423
f30b9e9819cc
Changed the 'Create Dialog Code Dialog' to adhere to the formatting rules of the 'Black' tool.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9209
diff
changeset
|
17 | |
1139 | 18 | def __init__(self, parent=None): |
19 | """ | |
20 | Constructor | |
9423
f30b9e9819cc
Changed the 'Create Dialog Code Dialog' to adhere to the formatting rules of the 'Black' tool.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
9209
diff
changeset
|
21 | |
8033
21fd39d6a6ee
Modified the code templates with respect to the constructor docstrings.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
6942
diff
changeset
|
22 | @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
|
23 | @type QWidget (optional) |
1139 | 24 | """ |
8411
da70caa2246d
Updated the dialog code templates to user 'super()'.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
8312
diff
changeset
|
25 | super().__init__(parent) |
1139 | 26 | self.setupUi(self) |