Also adds red color if no face is found

This commit is contained in:
2012-08-29 13:31:12 +02:00
parent 491b176020
commit 0567d84756

View File

@@ -303,14 +303,16 @@ class IvolutionWindow(IvolutionTemplate, Observer, Observable):
elif message[0] == "FILEDONE": elif message[0] == "FILEDONE":
for i in range(self.filelist.GetItemCount()): for i in range(self.filelist.GetItemCount()):
if message[1] == self.filelist.GetItemText(i): if message[1] == self.filelist.GetItemText(i):
print "FUCKKKKKK" if message[2] == 1:
color = "green"
else:
color = "red"
wx.MutexGuiEnter() # to avoid thread problems wx.MutexGuiEnter() # to avoid thread problems
#self.filelist.GetItem(i).SetBackgroundColour('green'), 1) self.filelist.SetItemTextColour(i, color)
self.filelist.SetItemTextColour(i, "green")
wx.MutexGuiLeave() wx.MutexGuiLeave()
elif len(message) > 1: # system commands shall be ignored elif len(message) > 1: # system commands shall be ignored
self.console_logger.debug("Unrecognized command") self.console_logger.debug("Unrecognized command")
self.my_logger.debug("Unrecognized command") self.my_logger.debug("Unrecognized command")
self.console_logger.debug(message) self.console_logger.debug(message)
self.my_logger.debug(message) self.my_logger.debug(message)