コード例 #1
0
ファイル: download.py プロジェクト: elyscape/kano-burners
    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)
コード例 #2
0
ファイル: download.py プロジェクト: wooyek/kano-burners
    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)
コード例 #3
0
ファイル: download.py プロジェクト: elyscape/kano-burners
 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)
コード例 #4
0
ファイル: download.py プロジェクト: wooyek/kano-burners
 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)