The text source consists out of elements from a nested lists. A label is created for each element in the list. Below the code:
list1 = [["test", 3, 2, 0], ["test2", 4, 1, 1],["test3", 0, 5, 2]]
row = 1
for i in list1:
text = "name: {}, x: {}, y: {}, z: {}".format(i[0],i[1],i[2],i[3])
customtkinter.CTkLabel(master=self.frame_1, text=text).grid(row=row, column=0, sticky='nw')
row = row + 1
Now i want i[3] to have a color. The question is, how?