書名: Tkinter GUI Programming by Example作者名: David Love本章字數: 77字更新時間: 2021-08-27 18:49:09
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.
推薦閱讀
- JavaScript高效圖形編程
- 基于免疫進化的算法及應用研究
- Web Application Development with MEAN
- HTML5入門經典
- INSTANT Django 1.5 Application Development Starter
- Go語言精進之路:從新手到高手的編程思想、方法和技巧(1)
- Getting Started with LLVM Core Libraries
- Tableau 10 Bootcamp
- Python High Performance Programming
- 編程菜鳥學Python數據分析
- PHP+Ajax+jQuery網站開發項目式教程
- Python Machine Learning Blueprints:Intuitive data projects you can relate to
- Julia數據科學應用
- 跟戴銘學iOS編程:理順核心知識點
- Appcelerator Titanium:Patterns and Best Practices