The field WidgetO for the special feature parent must be an instance of Tk.menu. self becomes a slave of WidgetO. Action and Args are described in Section 28.2.1 and Section 28.2.2.
tk
tk(...)
Sends a command for self to the graphics engine.
tkClose
tkClose()
Closes the object and destroys the menu entry. Further object application raises an exception.