*函数*接受0个位置参数,但给出了1个

时间:2019-12-05 16:05:18

标签: python tkinter

我是python的新手。目前,我正在研究一个程序。我收到一个错误。下面,我给出了一个产生类似错误的简单程序结构。 注意:我需要对该程序使用bind函数。

from tkinter import *


def x():
    print('Bla Bla Bla')


root = Tk()

root.bind('x', x)

mainloop()

0 个答案:

没有答案