How to create the title of a tkinter window form

The principle of changing the title of a tkinter main root window is the same as what we discussed in the previous recipe: How to create independent message boxes. We just pass in a string as the first argument to the constructor of the widget.