[PyKDE] sipThis ???

Henrik Motakef henrik.motakef at web.de
Fri Mar 1 16:43:01 GMT 2002


Laurent Claustre <claustre at esrf.fr> writes:

> AttributeError: sipThis

One good method to get this error seems to be not calling the
superclasses constructor in a derived class. You should always do
something like:

class DerivedClass(QListViewItem):
    def __init__(self, *args):
        apply(QListViewItem.__init__, (self,) + args)

hth
Henrik




More information about the PyQt mailing list