CodeTemplates/impl.py.tmpl

Sat, 09 Apr 2011 15:20:53 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 09 Apr 2011 15:20:53 +0200
changeset 977
7a523bd4b00d
parent 370
0c137bb40ac7
child 1010
06393b5f5330
permissions
-rw-r--r--

Corrected the dialog code template to adhere to PEP 8.

# -*- 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 (QWidget)
        """
        $SUPERCLASS$.__init__(self, parent)
        self.setupUi(self)

eric ide

mercurial