| | |
| | | print("refresh-l2-data") |
| | | for client_id in code_sv_map: |
| | | ip = data_process.getActiveClientIP(client_id) |
| | | ths_dead=data_process.getTHSState(client_id) |
| | | if ip is not None and len(ip) > 0: |
| | | client_state[client_id].configure(text="(在线:{})".format(ip), foreground="#008000") |
| | | if ths_dead: |
| | | client_state[client_id].configure(text="(在线:{})".format(ip), foreground="#FF7F27") |
| | | else: |
| | | client_state[client_id].configure(text="(在线:{})".format(ip), foreground="#008000") |
| | | else: |
| | | client_state[client_id].configure(text="(离线:未知IP)", foreground="#999999") |
| | | |