📜  从按钮 python 代码示例获取输入

📅  最后修改于: 2022-03-11 14:45:43.423000             🧑  作者: Mango

代码示例1
entry = tk.Entry()
    def get():
        guess = entry.get()
        return guess # Replace this with the actual processing.
    b1 = tk.Button(root, text="Guess", command=get)