src/eric7/CodeTemplates/impl_pyside2.py.tmpl

Wed, 19 Oct 2022 17:47:50 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 19 Oct 2022 17:47:50 +0200
branch
eric7
changeset 9423
f30b9e9819cc
parent 9209
b99e7fd55fd3
permissions
-rw-r--r--

Changed the 'Create Dialog Code Dialog' to adhere to the formatting rules of the 'Black' tool.

# -*- coding: utf-8 -*-

"""
Module implementing $CLASSNAME$.
"""

from PySide2.QtCore import Slot
from PySide2.QtWidgets import $SUPERCLASS$

from .Ui_$FORMFILE$ import Ui_$FORMCLASS$


class $CLASSNAME$($SUPERCLASS$, Ui_$FORMCLASS$):
    """
    Class documentation goes here.
    """

    def __init__(self, parent=None):
        """
        Constructor

        @param parent reference to the parent widget (defaults to None)
        @type QWidget (optional)
        """
        super().__init__(parent)
        self.setupUi(self)

eric ide

mercurial