code: def create_bookmark_action(parent, url, title, icon=None, shortcut=None):
      
      
      @Slot()
      def open_url():
          return programs.start_file(url)
      
      return create_action( parent, title, shortcut=shortcut, icon=icon,
                            triggered=open_url)
docs: Create bookmark action