Hi Phil, 

shouldn't attached script return True both times?

Doc says: A class is considered to inherit itself.

Cheers,
Pete
#! /usr/bin/env python

# 2005-02-04    initial version    hp

import sys
from qt import *

class Test(QWidget):
    def __init__(self, *args):
        QWidget.__init__(self, *args)

if __name__ == '__main__':
    app = QApplication(sys.argv)
    w = Test(None)
    print "inherit QWidget:", w.inherits("QWidget")
    print "inherit Test:", w.inherits("Test")
    w.show()
    QObject.connect(qApp, SIGNAL("lastWindowClosed()"), qApp, SLOT("quit()"))
    app.exec_loop()
_______________________________________________
PyKDE mailing list    [email protected]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to