[英]Focusing the empty entry box when user clicks the error messagebox in tkinter
[英]How to avoid error when user enters no input in a tkinter entry box?
據我了解,您希望不可能發生錯誤,因此請嘗試 try - except 語句
try : # do this
# .....
except : # if error happened do this
# .....
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.