def setPlayingTitle(self, show): """ This method sets the title of the window and the status bar to the current playing URI. """ if show: title = globals.niceAppName + ' - ' + utils.getFilenameFromURI(self._player.getURI()) else: title = globals.niceAppName self.window.set_title(title)
def getFilename(self): """ This method returns the filename for this media file. """ return utils.getFilenameFromURI(self._uri)