tkinter popup menu code example
Example: tkinter popup menu
#display menu on right click
def do_popup(self,event):
try:
self.popup_menu.tk_popup(event.x_root,
event.y_root)
finally:
self.popup_menu.grab_release()