为了账号安全,请及时绑定邮箱和手机立即绑定

TypeError: 'NoneType' object does not support item assignment

TypeError: 'NoneType' object does not support item assignment

慕侠9482766 2020-03-22 22:15:00
def handleEnterEvent(event):     label1['text'] = "You enter the frame"     label2['text'] = ""     label3['text'] = "Sichuan University of Science and Engineering"label1 = tkinter.Label(frame1, text="No event happened", foreground="#0000ff", background="#00ff00").place(x=16, y=20) File "/Users/2020yang/Desktop/Python/Python_Basic/excise/GUI/ex1/tkinter_key.py", line 11, in handleLeaveEvent    label1['text'] = "You leave the frame"TypeError: 'NoneType' object does not support item assignment
查看完整描述

目前暂无任何回答

  • 0 回答
  • 0 关注
  • 5703 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信