OWNER attribute

The handle of the widget that owns a menu widget.

Data type: HANDLE

Access: Read-only

Applies to: MENU widget

For a menu bar, the OWNER attribute returns the window with which the menu bar is associated. For a pop-up menu, the OWNER attribute returns the widget with which the menu is associated.