from tkinter import *
root=Tk()

def lclick(event):
    print("Left")
def rclick(event):
    print("Right")

frm=Frame(root, height=500,width=500)
frm.bind("<Button-1>",lclick)
frm.bind("<Button-2>",rclick)

root.mainloop()

8ad81d9c8ade670ec7513d24325a85b4dea43ab0
<mask token>


def lclick(event):
    print('Left')


def rclick(event):
    print('Right')


<mask token>

<mask token>


def lclick(event):
    print('Left')


def rclick(event):
    print('Right')


<mask token>
frm.bind('<Button-1>', lclick)
frm.bind('<Button-2>', rclick)
root.mainloop()

<mask token>
root = Tk()


def lclick(event):
    print('Left')


def rclick(event):
    print('Right')


frm = Frame(root, height=500, width=500)
frm.bind('<Button-1>', lclick)
frm.bind('<Button-2>', rclick)
root.mainloop()

from tkinter import *
root = Tk()


def lclick(event):
    print('Left')


def rclick(event):
    print('Right')


frm = Frame(root, height=500, width=500)
frm.bind('<Button-1>', lclick)
frm.bind('<Button-2>', rclick)
root.mainloop()

from tkinter import *
root=Tk()

def lclick(event):
    print("Left")
def rclick(event):
    print("Right")

frm=Frame(root, height=500,width=500)
frm.bind("<Button-1>",lclick)
frm.bind("<Button-2>",rclick)

root.mainloop()
