def __new__(type, *args): if not '_the_instance' in type.__dict__: type._the_instance = QObject.__new__(type) return type._the_instance