def get_paint_color(self, rgb): """returns a paint color object based on the given rgb tuple""" r,g,b = rgb return paint.rgb(int(r*255),int(g*255),int(b*255))
def get_paint_color(self, rgb): """returns a paint color object based on the given rgb tuple""" r, g, b = rgb return paint.rgb(int(r * 255), int(g * 255), int(b * 255))