def draw(self, context):
layout = self.layout
scene = context.scene
for line in logList:
lines = line.split(":", 1)
if lines[0] == 'CRITICAL':
lineicon = 'RADIO'
elif lines[0] == 'ERROR':
lineicon = 'CANCEL'
elif lines[0] == 'WARNING':
lineicon = 'ERROR'
elif lines[0] == 'INFO':
lineicon = 'INFO'
else:
lineicon = 'TEXT'
layout.label(text = lines[1], icon = lineicon)
logList[:] = [] # Clear log list for next call (otherwise list is not updated when 'OK' button is not clicked)
# Export button
评论列表
文章目录