parameters: (self, position)
docstring: Open the context menu in the correct location
          :param position: The position to open the menu, e.g. where
                           the mouse button was clicked
docstring_summary: Open the context menu in the correct location
          :param position: The position to open the menu, e.g. where
                           the mouse button was clicked
docstring_tokens: Open the context menu in the correct location : param position : The position to open the menu e . g . where the mouse button was clicked
function: def spectra_context_menu_opened(self, position):
          """
          Open the context menu in the correct location
          :param position: The position to open the menu, e.g. where
                           the mouse button was clicked
          """
          context_menu = self.setup_spectra_context_menu(self.currentWidget())
          context_menu.exec_(self.currentWidget().verticalHeader().mapToGlobal(position))
function_tokens: def spectra_context_menu_opened ( self , position ) : context_menu = self . setup_spectra_context_menu ( self . currentWidget ( ) ) context_menu . exec_ ( self . currentWidget ( ) . verticalHeader ( ) . mapToGlobal ( position ) )