eric6/CodeTemplates/impl_pyqt6.py.tmpl

Sun, 31 Jan 2021 12:23:30 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 31 Jan 2021 12:23:30 +0100
changeset 8033
21fd39d6a6ee
parent 7907
7991ea245c20
permissions
-rw-r--r--

Modified the code templates with respect to the constructor docstrings.

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

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

from PyQt6.QtCore import pyqtSlot
from PyQt6.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($CLASSNAME$, self).__init__(parent)
        self.setupUi(self)

eric ide

mercurial