【发布时间】:2018-09-05 10:12:06
【问题描述】:
TypeError: 'str' 对象不可调用
执行以下代码时出现错误:
#other codes
from tkinter import *
from tkinter import ttk
from tkinter import messagebox
#othercodes
root = Tk()
frame = Frame(root)
#other codes
def net_connection_error():
#print(dir(messagebox))
messagebox.INFO(
"info",
"No Connection!"
)
#other codes
net_connection_error()
#other codes
root.mainloop()
TypeError: 'str' 对象不可调用
【问题讨论】:
标签: python python-3.x tkinter