CodeTemplates/impl_pyqt5.py2.tmpl

Sat, 12 Apr 2014 16:19:56 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 12 Apr 2014 16:19:56 +0200
branch
5_4_x
changeset 3501
22b84d61a608
parent 2741
d0d7836d0c01
child 3867
5817141137fb
permissions
-rw-r--r--

Fixed an issue in the project writer.
(grafted from 60f6631547897143c9b3188b097c6354e9af4507)

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

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

from PyQt5.QtCore import pyqtSlot
from PyQt5.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 (QWidget)
        """
        super($SUPERCLASS$, self).__init__(parent)
        self.setupUi(self)

eric ide

mercurial