def new_element(msg):
global last_message
if msg.data!=last_message:
last_message = msg.data
received_msg = String()
received_msg.data = "receives: " + msg.data
pub_reception.publish(received_msg)
p1.update_trace(msg.data)
p1.mainframe.tkraise()
################################################ for the trace
评论列表
文章目录