def openContextMenu(self):
		if self.shown:
			self.hideInfobar()
		contextMenuList = YouTubeEntryContextMenuList()
		for entry in self.contextMenuEntries:
			contextMenuList.appendEntry(entry)
		self.session.openWithCallback(self.menuActionCoosen, YouTubeEntryContextMenu, contextMenuList, self.name)
	def openContextMenu(self):
		if self.shown:
			self.hideInfobar()
		contextMenuList = YouTubeEntryContextMenuList()
		for entry in self.contextMenuEntries:
			contextMenuList.appendEntry(entry)
		self.session.openWithCallback(self.menuActionCoosen, YouTubeEntryContextMenu, contextMenuList, self.name)
Beispiel #3
0
 def openContextMenu(self):
     contextMenuList = YouTubeEntryContextMenuList()
     contextMenuList.appendEntry(
         (_("Show video detail info"), self.showVideoInfo))
     if self["list"].getCurrent()[0].belongsToFavorites():
         contextMenuList.appendEntry(
             (_("Remove from favorites"), self.removeFromFavorites))
     else:
         contextMenuList.appendEntry(
             (_("Add to favorites"), self.addToFavorites))
     if self["list"].getCurrent()[0].isPlaylistEntry():
         contextMenuList.appendEntry(
             (_("Remove from playlist"), self.removeFromPlaylist))
     else:
         contextMenuList.appendEntry(
             (_("Add to playlist"), self.addToPlaylist))
     contextMenuList.appendEntry((_("Get related videos"), self.getRelated))
     contextMenuList.appendEntry(
         (_("Get video responses"), self.getResponses))
     self.session.openWithCallback(self.menuActionCoosen,
                                   YouTubeEntryContextMenu, contextMenuList,
                                   self["list"].getCurrent()[0].getTitle())
	def openContextMenu(self):
		contextMenuList = YouTubeEntryContextMenuList()
		contextMenuList.appendEntry((_("Show video detail info"), self.showVideoInfo))
		if self["list"].getCurrent()[0].belongsToFavorites():
			contextMenuList.appendEntry((_("Remove from favorites"), self.removeFromFavorites))
		else:
			contextMenuList.appendEntry((_("Add to favorites"), self.addToFavorites))
		if self["list"].getCurrent()[0].isPlaylistEntry():
			contextMenuList.appendEntry((_("Remove from playlist"), self.removeFromPlaylist))
		else:
			contextMenuList.appendEntry((_("Add to playlist"), self.addToPlaylist))
		contextMenuList.appendEntry((_("Get related videos"), self.getRelated))
		contextMenuList.appendEntry((_("Get video responses"), self.getResponses))
		self.session.openWithCallback(self.menuActionCoosen, YouTubeEntryContextMenu, contextMenuList, self["list"].getCurrent()[0].getTitle())