def _on_apt_finished_stamp_changed(self, monitor, afile, other_file,
event):
if not event == Gio.FileMonitorEvent.CHANGES_DONE_HINT:
return
if self._timeout_id:
GObject.source_remove(self._timeout_id)
self._timeout_id = None
self._timeout_id = GObject.timeout_add_seconds(10, self.open)
评论列表
文章目录