def new_phrase(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.telling(msg.data)
p1.mainframe.tkraise()
评论列表
文章目录