Page 77 - Programming the Raspberry Pi Getting Started with Python
P. 77
whole range of them in the package tkinter.messagebox.
Figure 7-9 An alert dialog
The following example shows how to display such an alert. As well as showinfo,
tkinter.messagebox also has the functions showwarning and showerror that work just the same, but
display a different symbol in the window.
Other kinds of dialogs can be found in the packages tkinter.colorchooser and
tkinter.filedialog.
Color Chooser
The Color Chooser returns a color as separate RGB components as well as a standard hex color string
(see Figure 7-10).
Figure 7-10 The Color Chooser