def popup_menu ( self, menu ):
        """ Displays a shortcut menu.

        Parameters
        ----------
        menu : traitsui.menu.Menu object
            The menu to be displayed

        Returns
        -------
        Nothing.

        Description
        -----------
        This helper method displays the shortcut menu specified by *menu* at a
        point near the feature object's current (x,y) value, as specified by
        the **x** and **y** traits. Normally, the (x,y) value contains the
        screen location where the user clicked on the feature's tab or drag
        bar image. The effect is that the menu is displayed near the feature's
        icon, with the pointer directly over the top menu option.
        """
        window = self.dock_control.control.GetParent()
        wx, wy = window.GetScreenPosition()
        window.PopupMenuXY( menu.create_menu( window, self ),
                            self.x - wx - 10, self.y - wy - 10 )

    #---------------------------------------------------------------------------
    #  Refreshes the display of the feature image:
    #---------------------------------------------------------------------------
dataset/ETHPy150Open enthought/pyface/pyface/dock/dock_window_feature.py/DockWindowFeature.popup_menu/original