def report(self, i_count, i_chunk, i_size):
    print('retrived %5d of %5d bytes' % (i_count * i_chunk, i_size))

def test():
    c = Capturer()
c.capture('http://www.google.com/google.png', 'google1.png')
c.capture('http://www.google.com/google.png', 'google2.png')
if __name__ == '__main__':
    test()
Как правильно закрыть QtApplication PyQt?