CodeTemplates/impl_pyqt.py.tmpl

Thu, 08 Oct 2015 19:10:10 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 08 Oct 2015 19:10:10 +0200
changeset 4484
5c9952e29895
parent 3867
5817141137fb
permissions
-rw-r--r--

Changed the dialog code generation templates to support the updated source documentation system.

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

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

from PyQt4.QtCore import pyqtSlot
from PyQt4.QtGui 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
        @type QWidget
        """
        super($CLASSNAME$, self).__init__(parent)
        self.setupUi(self)

eric ide

mercurial