class Main(): def __new__(cls): if not hasattr(cls, 'instance'): cls.instance = super(Main, cls).__new__(cls) return cls.instance def __init__(self): self.downloader = DownloaderMotor(self) self.downloader.start() self.actioner = Actioner.ActionerMotor(self) self.actioner.start() self.writer = Writer.WriterMotor(self) self.writer.start()
def __init__(self): self.downloader = DownloaderMotor(self) self.downloader.start() self.actioner = Actioner.ActionerMotor(self) self.actioner.start() self.writer = Writer.WriterMotor(self) self.writer.start()