def color_setup(self, conn, flag):
"""Read data from resent calculation and transform it to rgba color"""
if flag == GLib.IO_IN:
color_values = conn.recv()
rgba = Gdk.RGBA(*color_values, self.config["color"]["autofg"].alpha)
self.emit("ac-update", rgba)
return True
else:
logger.error("Autocolor multiprocessing error: connection was unexpectedy terminated")
self.watcher = None
评论列表
文章目录