please help to assign hotkeys to the top entry menu "OPEN".
import tkinter
def fileOpen():
print('qwerty')
def makeMenu(parent):
top = tkinter.Menu(parent)
parent.config(menu = top)
file = tkinter.Menu(top, tearoff = False)
file.add_command(label = 'Open...', command = fileOpen, accelerator = 'ctrl+o')
top.add_cascade(label = 'File', menu = file)
#top.bind_class(top, '<Control-Key-o>', fileOpen)
root = tkinter.Tk()
makeMenu(root)
root.mainloop()
I need to by pressing "CTRL + O" runs the function "fileOpen"