How it works...

We are passing more arguments into the tkinter constructor of the message box to add a title to the window form and display the text in the message box instead of displaying it as its title. This happens due to the position of the arguments we are passing. If we leave out an empty quote or a double quote, then the message box widget takes the first position of the arguments as the title, not the text to be displayed within the message box. By passing an empty quote followed by a comma, we change where the message box displays the text we are passing into the function.

We suppress the second pop-up window, which automatically gets created by the tkinter message box widget, by calling the withdraw() method on our main root window.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.218.157.34