def _on_axi_stamp_changed(self, monitor, afile, otherfile, event):
# we only care about the utime() update from update-a-x-i
if not event == Gio.FileMonitorEvent.ATTRIBUTE_CHANGED:
return
LOG.info("afile '%s' changed" % afile)
if self._timeout_id:
GObject.source_remove(self._timeout_id)
self._timeout_id = None
self._timeout_id = GObject.timeout_add(500, self.reopen)
评论列表
文章目录