code: def create_assign_context_menu(self):
          
          menu = QMenu("AutoKey")
          self._build_menu(menu)
          self.setContextMenu(menu)
docs: Create a context menu, then set the created QMenu as the context menu.
          This builds the menu with all required actions and signal-slot connections.