TypeError: 'builtin_function_or_method' object is not subscriptable

后端 未结 8 1140
太阳男子
太阳男子 2020-12-09 02:06
elif( listb[0] == \"-test\"):
    run_all.set(\"testview\")
    listb.pop[0]

ERROR: Exception in Tkinter callback T

8条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-09 02:33

    FYI, this is not an answer to the post. But it may help future users who may get the error with the message:

    TypeError: 'builtin_function_or_method' object is not subscriptable

    In my case, it was occurred due to bad indentation.

    Just indenting the line of code solved the issue.

提交回复
热议问题