i used msg_bar.bind(sequence=\'\', func=send_message) to bind my Text widget msg_bar to the Return key.
msg_bar.bind(sequence=\'\', func=send_message)
msg_bar
Return
the code