def set_color(self, color=None): for line in self.lines: line.color = color if color is None: idaapi.clr_node_info2(self._fc._q.bounds.startEA, self.id, idaapi.NIF_BG_COLOR) else: node_info = idaapi.node_info_t() node_info.bg_color = color idaapi.set_node_info2(self._fc._q.bounds.startEA, self.id, node_info, idaapi.NIF_BG_COLOR)