Exemplo n.º 1
0
    def __init__(self, *args, **kwargs):
        SmartDL.__init__(self, *args, **kwargs)

        # we register the stop() method of SmartDL to be called when the program exits
        # it makes sure any downloading threads are safely terminated
        import atexit
        atexit.register(self.stop)
Exemplo n.º 2
0
    def __init__(self, *args, **kwargs):
        SmartDL.__init__(self, *args, **kwargs)

        # we register the stop() method of SmartDL to be called when the program exits
        # it makes sure any downloading threads are safely terminated
        import atexit
        atexit.register(self.stop)
Exemplo n.º 3
0
 def isFinished(self):
     # the default method now needs to also report whether it was killed or not
     return not self._killed and SmartDL.isFinished(self)
Exemplo n.º 4
0
 def isFinished(self):
     # the default method now needs to also report whether it was killed or not
     return not self._killed and SmartDL.isFinished(self)