hi,
tkinter-listbox-different-text-colors-one-listbox. I try to write each user with a different color to be able to differentiated. I always get the same error when I run the following code.
tkinter-listbox-different-text-colors-one-listbox. I try to write each user with a different color to be able to differentiated. I always get the same error when I run the following code.
Code:
for elt in result1: userliste1.append(elt[1]+" "+elt[2]) for elt in result2: userliste2.append(elt[1]+" "+elt[2]) result=[checkuser1 + ' '+ value for value in userliste1 if value not in userliste2]+[checkuser2+ ' '+ value for value in userliste2 if value not in userliste1] if len(result)==0: w.BenutzerVergleichUserStatusLabel(text=getMessage('9003')) return for row in result : w.BenutzerVergleichProfileListbox.insert(tk.END, row[:8]+ ' : ' + row[8:]) w.BenutzerVergleichProfileListbox.itemconfig(2, fg='red')
Comment