Example #1
0
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()
Example #2
0
 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()