|
@@ -180,12 +180,13 @@ def __scan():
|
|
color = li_nodes.itemconfig("end", bg=bg)
|
|
color = li_nodes.itemconfig("end", bg=bg)
|
|
ip = str(node_nr).rjust(3," ") +" "+ node["IP"]
|
|
ip = str(node_nr).rjust(3," ") +" "+ node["IP"]
|
|
bg = ""
|
|
bg = ""
|
|
- if node["PortTypes"][0] == "@":
|
|
|
|
- ip += " DMX-in"
|
|
|
|
- bg ="yellow"
|
|
|
|
- else:
|
|
|
|
- ip += " DMX-out"
|
|
|
|
- bg ="lightgreen"
|
|
|
|
|
|
+ if node["PortTypes"]:
|
|
|
|
+ if node["PortTypes"][0] == "@":
|
|
|
|
+ ip += " DMX-in"
|
|
|
|
+ bg ="yellow"
|
|
|
|
+ else:
|
|
|
|
+ ip += " DMX-out"
|
|
|
|
+ bg ="lightgreen"
|
|
if bg:
|
|
if bg:
|
|
color = li_nodes.itemconfig("end", bg=bg)
|
|
color = li_nodes.itemconfig("end", bg=bg)
|
|
|
|
|