from tkinter import msg message(text="oh by the waywhich one' pink?"msg config(bg='pink'font=('times' 'italic')msg pack(fill=xexpand=yesmainloop(figure - message widget at work entry the entry widget is simplesingle-line text input field it is typically used for input fields in form-like dialogs and anywhere else you need the user to type value into field of larger display entry also supports advanced concepts such as scrollingkey bindings for editingand text selectionsbut it' simple to use in practice example - builds the input window shown in figure - example - pp \gui\tour\entry py from tkinter import from quitter import quitter def fetch()print('input ="% "ent get()get text root tk(ent entry(rootent insert( 'type words here'ent pack(side=topfill=xset text grow horiz ent focus(ent bind(''(lambda eventfetch())btn button(roottext='fetch'command=fetchbtn pack(side=leftquitter(rootpack(side=rightroot mainloop(save click on enter key and on button message and entry