X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FScreens%2FInfoBar.py;h=860022a1fd4c10d1aca5d0eb8947b360f004c178;hp=550628786ff0a8f109d2f6ce6855d34b1876e9b5;hb=36cca1d3f31265929ef3443999ab7fd242b4dae5;hpb=7211bd40026fb8b00be038a59abcbfa29569b3ed diff --git a/lib/python/Screens/InfoBar.py b/lib/python/Screens/InfoBar.py old mode 100644 new mode 100755 index 5506287..860022a --- a/lib/python/Screens/InfoBar.py +++ b/lib/python/Screens/InfoBar.py @@ -45,6 +45,8 @@ class InfoBar(InfoBarBase, InfoBarShowHide, "showMovies": (self.showMovies, _("Play recorded movies...")), "showRadio": (self.showRadio, _("Show the radio player...")), "showTv": (self.showTv, _("Show the tv player...")), + # ikseong action for subtitle hotkey + "showSubtitle":(self.showSubtitle, _("Show the Subtitle...")), }, prio=2) self.allowPiP = True @@ -123,6 +125,11 @@ class InfoBar(InfoBarBase, InfoBarShowHide, if service is not None: self.session.open(MoviePlayer, service) + # ikseong action for subtitle hotkey + def showSubtitle(self): + from Screens.Subtitles import Subtitles + self.session.open(Subtitles) + class MoviePlayer(InfoBarBase, InfoBarShowHide, \ InfoBarMenu, \ InfoBarSeek, InfoBarShowMovies, InfoBarAudioSelection, HelpableScreen, InfoBarNotifications, @@ -138,6 +145,8 @@ class MoviePlayer(InfoBarBase, InfoBarShowHide, \ self["actions"] = HelpableActionMap(self, "MoviePlayerActions", { + # ikseong action for subtitle hotkey + "showSubtitle":(self.showSubtitle, _("Show the Subtitle...")), "leavePlayer": (self.leavePlayer, _("leave movie player...")) }) @@ -242,3 +251,8 @@ class MoviePlayer(InfoBarBase, InfoBarShowHide, \ self.returning = False elif self.returning: self.close() + + # ikseong action for subtitle hotkey + def showSubtitle(self): + from Screens.Subtitles import Subtitles + self.session.open(Subtitles)