def run_background(self, interval=1):
"""
Convert minute interval to seconds
and updated services with new timeout.
"""
timeout = interval * 60 * 1000
self.services['timeout'] = GObject.timeout_add(timeout, self.update_reddit_data)
评论列表
文章目录