AttributeError:“\u tkinter.tkapp”对象没有属性“destoy”

2024-04-25 03:35:50 发布

您现在位置:Python中文网/ 问答频道 /正文

我的项目显示退出按钮时出错?我能做什么…我检查了很多次

def iExit():
              iExit = tkinter.messagebox.askyesno("Customer Billing system","Confirm if you want to exit")
              if iExit > 0:
                   root.destoy()
                   return

错误

t__.py", line 2095, in __getattr__
    return getattr(self.tk, attr)
AttributeError: '_tkinter.tkapp' object has no attribute 'destoy'

Tags: 项目returniftkinterdefcustomer按钮system