CodeTemplates/impl_pyqt.py.tmpl

Sun, 23 Oct 2016 23:12:49 +0200

author
T.Rzepka <Tobias.Rzepka@gmail.com>
date
Sun, 23 Oct 2016 23:12:49 +0200
changeset 5269
0e96e1557c45
parent 4484
5c9952e29895
permissions
-rw-r--r--

Fix for PyPy showing no local variables and suppress exception on old frames.

# -*- 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