当我从tkinter小部件事件调用函数时,我需要在函数的定义行中添加第二个参数。如onChange(自身,事件)或onChange(自身,测试)。"event“和"test”是第二个参数。any other other second parameter name in the def line:
print('Content is: ', self.var.get()) 作为Python/Tkinter的初学者
\Python35-32\lib\tkinter\__init__.py", line 2856, in __init__ File "C:\Users\nickw\AppData\Local\Programs\Python\Python35-32\lib\tkinter\__init__.py", line 2132, in __i