Web Analytics Made Easy - Statcounter
Skip to content

Popup menu

Makes a "popup menu" This type of menu is what you get when a normal menu or a right click menu is torn off The settings for the menu are obtained from the window parameter's Window

popup_menu(
    window,
    element,
    menu_def,
    title = None,
    location = (None, None)
)

Parameter Descriptions

Name Type Default Description
element Element An element in your window to associate the menu to. It can be any element
location (int, int) or (None, None) (None, None) The location on the screen to place the window
menu_def List[List[ List[str] or str ]] A menu definition. This will be the same format as used for Right Click Menus1
title str None The title that will be shown on the torn off menu window. Defaults to window titlr
window Window The window associated with the popup menu. The theme and right click menu settings for this window will be used