Showing warnings or errors

If the information to convey is more serious, you can let the user know with showwarning.

If something goes wrong, tell the user with showerror instead.

Both of these function the same as the showinfo box that we have practiced but display a different image inside the box.

Try changing the showinfo in say_hello to a showwarning and the showinfo in say_goodbye to a showerror to see what these boxes will look like.

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

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