+ 5

I need help with tkinter, a python module , i need to create an event handler when the user clicks a button, thx 8)

11th May 2018, 12:54 AM
Leandro Araujo Gonzalez
Leandro Araujo Gonzalez - avatar
2 Antworten
+ 5
def say_hi(): print('hi') but = Button(window, text='click here', command=say_hi) but.pack()
11th May 2018, 3:39 AM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar
0
ah, i saw that "command" statement before, thx u :D
11th May 2018, 9:56 AM
Leandro Araujo Gonzalez
Leandro Araujo Gonzalez - avatar