def screenPressed(e): print("screen clicked") window = Tk() window.bind('<ButtonPress-1>', screenPressed)