[英]How can I make it so that python can check a SystemError in the command prompt
每次我运行代码时,它总是认为存在系统错误,即使可能没有
def Check():
if SystemError:
Label3 = tk.Label(root, text='Error: Invalid Version\nor already installed', bg="lightblue")
Label3.config(font=('Ariel', 12), fg='red')
canvas.create_window(150,330, window=Label3)
else:
success = tk.Label(root, text='Success!', bg="lightblue")
success.config(font=('Ariel', 12), fg='green')
canvas.create_window(150,330, window=success)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.