def _on_changed(self, widget):
"""
Call the actual search method after a small timeout to allow the user
to enter a longer search term
"""
self._check_style()
if self._timeout_id > 0:
GObject.source_remove(self._timeout_id)
self._timeout_id = GObject.timeout_add(self.SEARCH_TIMEOUT,
self._emit_terms_changed)
评论列表
文章目录