mirror of
https://github.com/jlengrand/Ivolution.git
synced 2026-03-10 08:21:18 +00:00
Also adds red color if no face is found
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user