test

Python code posted by hjvhk
created at 21 Dec 10:40

Edit | Back
1
2
3
4
5
6
7
8
9
import tkinter as tk
gui = tk.Tk()
gui.geometry("200x200")
def myFunction(event):
    label["text"] = "Vous avez appuyé sur Entrée"
gui.bind('<Return>', myFunction)
label = tk.Label(gui, text="")
label.pack()
gui.mainloop()
231 Bytes in 2 ms with coderay