def clean(self): queue = Queue() print('Delete temporary files...') shutil.rmtree(self.tmpd) GLib.add(queue.pbar.set_fraction, 0) GLib.add(queue.pbar.set_text, 'Ready')