elif( listb[0] == "-test"):
run_all.set("testview")
listb.pop[0]
ERROR: Exception in Tkinter callback Traceback (most recent call
last): File
"/tools/python/2.7.2/lib/python2.7/lib-tk/Tkinter.py", line 1410,
in call
return self.func(*args) File "./edit.py", line 581, in populate
listb.pop[0] TypeError: 'builtin_function_or_method' object is not subscriptable
The line # 581 is represented by last pop statement in the code above.
run_all is a StringVar.
Why am I getting this error and how can it be solved?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…