src/eric7/CodeTemplates/impl_pyside2.py.tmpl

branch
eric7
changeset 11216
a1471981ef18
parent 11215
d07c71a34adf
child 11217
856628e8a303
equal deleted inserted replaced
11215:d07c71a34adf 11216:a1471981ef18
1 # -*- coding: utf-8 -*-
2
3 """
4 Module implementing $CLASSNAME$.
5 """
6
7 from PySide2.QtCore import Slot
8 from PySide2.QtWidgets import $SUPERCLASS$
9
10 from .Ui_$FORMFILE$ import Ui_$FORMCLASS$
11
12
13 class $CLASSNAME$($SUPERCLASS$, Ui_$FORMCLASS$):
14 """
15 Class documentation goes here.
16 """
17
18 def __init__(self, parent=None):
19 """
20 Constructor
21
22 @param parent reference to the parent widget (defaults to None)
23 @type QWidget (optional)
24 """
25 super().__init__(parent)
26 self.setupUi(self)

eric ide

mercurial