def wingsAddFunc(self):
if self.wingsList.count() == 1:
self.error("Wings cannot have more than 1 color")
else:
hex_color = pick("Color")
if hex_color is None:
return
color = "#" + hex_color.lower()
actual, closest = get_colour_name(webcolors.hex_to_rgb(color))
if not actual:
actual = closest
self.wingsList.addItem(QListWidgetItem(actual + "(" + color + ")"))
评论列表
文章目录