#!/usr/bin/env python # -*- coding: utf-8 -*- from tkinter import * def action(): print("Yes, we can !") root = Tk() #w = Label(root, text="Bonjour!") #w.pack() b = Button(root,text="Click here !",command=action) b.pack() root.mainloop()