コード例 #1
0
    def __init__(self, session, defaultEntryName, channel=None):
        ChannelSelectionBase.__init__(self, session)

        self["actions"] = ActionMap(
            [
                "OkCancelActions", "DirectionActions",
                "QuadPipChannelEditActions"
            ], {
                "cancel": self.Exit,
                "ok": self.channelSelected,
                "toggleList": self.toggleCurrList,
                "editName": self.editEntryName,
                "up": self.goUp,
                "down": self.goDown,
            }, -1)

        self.session = session
        dh = self.session.desktop.size().height()
        self.skin = {1080:CreateQuadPipChannelEntry.skin_default_1080p, \
            720:CreateQuadPipChannelEntry.skin_default_720p, \
            576:CreateQuadPipChannelEntry.skin_default_576p}.get(dh, CreateQuadPipChannelEntry.skin_default_1080p)

        self.defaultEntryName = defaultEntryName
        self["textChannels"] = Label(_(" "))
        self["description"] = Label(_(" "))

        self.currList = None

        self.newChannel = channel
        self.descChannels = []
        self.prepareChannels()
        self["selectedList"] = MenuList(self.descChannels, True)
        self.selectedList = self["selectedList"]

        self.onLayoutFinish.append(self.layoutFinished)
コード例 #2
0
	def __init__(self, session, providers=False):
		self.providers = providers
		ChannelSelectionBase.__init__(self, session)
		self.bouquet_mark_edit = OFF
		self.setTitle(_("Select service to add..."))
		self["actions"] = ActionMap(["OkCancelActions", "TvRadioActions"], {"cancel": self.close, "ok": self.channelSelected, "keyRadio": self.setModeRadio, "keyTV": self.setModeTv})
		self.onLayoutFinish.append(self.setModeTv)
コード例 #3
0
	def __init__(self, session, providers=False):
		self.providers = providers
		ChannelSelectionBase.__init__(self, session)
		self.bouquet_mark_edit = OFF
		self.setTitle(_("Select service to add..."))
		self["actions"] = ActionMap(["OkCancelActions", "TvRadioActions"], {"cancel": self.close, "ok": self.channelSelected, "keyRadio": self.setModeRadio, "keyTV": self.setModeTv})
		self.onLayoutFinish.append(self.setModeTv)
コード例 #4
0
ファイル: qpip.py プロジェクト: Open-Plus/opgui
	def __init__(self, session, defaultEntryName, channel = None):
		ChannelSelectionBase.__init__(self, session)

		self["actions"] = ActionMap(["OkCancelActions", "DirectionActions", "QuadPipChannelEditActions"],
		{
			"cancel": self.Exit,
			"ok": self.channelSelected,
			"toggleList" : self.toggleCurrList,
			"editName" : self.editEntryName,
			"up": self.goUp,
			"down": self.goDown,
		}, -1)

		self.session = session
		dh = self.session.desktop.size().height()
		self.skin = {1080:CreateQuadPipChannelEntry.skin_default_1080p, \
						720:CreateQuadPipChannelEntry.skin_default_720p, \
						576:CreateQuadPipChannelEntry.skin_default_576p}.get(dh, CreateQuadPipChannelEntry.skin_default_1080p)

		self.defaultEntryName = defaultEntryName
		self["textChannels"] = Label(_(" "))
		self["description"] = Label(_(" "))

		self.currList = None

		self.newChannel = channel
		self.descChannels = []
		self.prepareChannels()
		self["selectedList"] = MenuList(self.descChannels, True)
		self.selectedList = self["selectedList"]

		self.onLayoutFinish.append(self.layoutFinished)
コード例 #5
0
 def __init__(self, session, title):
     ChannelSelectionBase.__init__(self, session)
     HelpableScreen.__init__(self)
     self.skinName = [
         "SmallChannelSelection", "mySmallChannelSelection"
     ]  # The screen "mySmallChannelSelection" is for legacy support only.
     self.setTitle(_("Volume Adjust Service Selection"))
     self.onShown.append(self.__onExecCallback)
     self.bouquet_mark_edit = OFF
     service = self.session.nav.getCurrentService()
     if service:
         info = service.info()
         if info:
             refstr = info.getInfoString(iServiceInformation.sServiceref)
             self.servicelist.setPlayableIgnoreService(
                 eServiceReference(refstr))
     self["actions"] = HelpableActionMap(
         self, ["OkCancelActions", "TvRadioActions"], {
             "cancel": (self.cancel, _("Cancel the service selection")),
             "ok": (self.channelSelected,
                    _("Select the currently highlighted service")),
             "keyTV":
             (self.setModeTv, _("Switch to the available TV services")),
             "keyRadio": (self.setModeRadio,
                          _("Switch to the available RADIO services"))
         },
         prio=0,
         description=_("Service Selection Actions"))
コード例 #6
0
ファイル: search.py プロジェクト: m1ngr/archivczsk
 def __init__(self, session):
     ChannelSelectionBase.__init__(self, session)
     SimpleChannelSelectionEPG.__init__(self)
     
     self["actions"] = ActionMap(["OkCancelActions", "TvRadioActions"],
             {
              "cancel": self.cancel,
              "ok": self.channelSelected,
              "keyRadio": self.doRadioButton,
              "keyTV": self.doTVButton,
             })
コード例 #7
0
    def __init__(self, session):
        ChannelSelectionBase.__init__(self, session)
        SimpleChannelSelectionEPG.__init__(self)

        self["actions"] = ActionMap(
            ["OkCancelActions", "TvRadioActions"], {
                "cancel": self.cancel,
                "ok": self.channelSelected,
                "keyRadio": self.doRadioButton,
                "keyTV": self.doTVButton,
            })
コード例 #8
0
    def __init__(self, session, title):
        ChannelSelectionBase.__init__(self, session)
        self.onShown.append(self.__onExecCallback)

        self["actions"] = ActionMap(
            ["OkCancelActions", "ChannelSelectBaseActions"], {
                "showFavourites": self.doNothing,
                "showAllServices": self.cancel,
                "showProviders": self.doNothing,
                "showSatellites": self.doNothing,
                "cancel": self.cancel,
                "ok": self.channelSelected
            })
        self["key_red"] = StaticText(_("Close"))
        self["key_green"] = StaticText()
        self["key_yellow"] = StaticText()
        self["key_blue"] = StaticText()
        self["introduction"] = StaticText(_("Press OK to select a provider."))
コード例 #9
0
ファイル: plugin.py プロジェクト: popazerty/12
	def __init__(self, session, title):
		ChannelSelectionBase.__init__(self, session)
		self.onShown.append(self.__onExecCallback)

		self["actions"] = ActionMap(["OkCancelActions", "ChannelSelectBaseActions"],
			{
				"showFavourites": self.doNothing,
				"showAllServices": self.cancel,
				"showProviders": self.doNothing,
				"showSatellites": self.doNothing,
				"cancel": self.cancel,
				"ok": self.channelSelected
			})
		self["key_red"] = StaticText(_("Close"))
		self["key_green"] = StaticText()
		self["key_yellow"] = StaticText()
		self["key_blue"] = StaticText()
		self["introduction"] = StaticText(_("Press OK to select a Provider."))
コード例 #10
0
 def __init__(self, session, title):
     self.skin = mySmallChannelSelection.skin
     ChannelSelectionBase.__init__(self, session)
     self.onShown.append(self.__onExecCallback)
     self.bouquet_mark_edit = OFF
     service = self.session.nav.getCurrentService()
     if service:
         info = service.info()
         if info:
             refstr = info.getInfoString(iServiceInformation.sServiceref)
             self.servicelist.setPlayableIgnoreService(
                 eServiceReference(refstr))
     self["actions"] = ActionMap(
         ["OkCancelActions", "TvRadioActions", "ChannelSelectBaseActions"],
         {
             "cancel": self.cancel,
             "ok": self.channelSelected,
             "keyRadio": self.setModeRadio,
             "keyTV": self.setModeTv
         })
コード例 #11
0
ファイル: plugin.py プロジェクト: OpenESI/Wetek-ESI
	def __init__(self, session, title):
		ChannelSelectionBase.__init__(self, session)
		self.onShown.append(self.__onExecCallback)
		self.bouquet_mark_edit = OFF

		self["actions"] = ActionMap(["OkCancelActions", "TvRadioActions", "ChannelSelectBaseActions"],
			{
				"showProviders": self.doNothing,
				"showSatellites": self.showAllServices,
				"showAllServices": self.cancel,
				"cancel": self.cancel,
				"ok": self.channelSelected,
				"keyRadio": self.setModeRadio,
				"keyTV": self.setModeTv
			})

		self["key_red"] = StaticText(_("Close"))
		self["key_green"] = StaticText(_("All"))
		self["key_yellow"] = StaticText()
		self["key_blue"] = StaticText(_("Favourites"))
		self["introduction"] = StaticText(_("Press OK to select a provider."))
コード例 #12
0
    def __init__(self, session, title):
        ChannelSelectionBase.__init__(self, session)
        self.onShown.append(self.__onExecCallback)
        self.bouquet_mark_edit = OFF

        self["actions"] = ActionMap(
            ["OkCancelActions", "TvRadioActions", "ChannelSelectBaseActions"],
            {
                "showProviders": self.doNothing,
                "showSatellites": self.showAllServices,
                "showAllServices": self.cancel,
                "cancel": self.cancel,
                "ok": self.channelSelected,
                "keyRadio": self.setModeRadio,
                "keyTV": self.setModeTv
            })

        self["key_red"] = StaticText(_("Close"))
        self["key_green"] = StaticText(_("All"))
        self["key_yellow"] = StaticText()
        self["key_blue"] = StaticText(_("Favourites"))
        self["introduction"] = StaticText(_("Press OK to select a provider."))
コード例 #13
0
 def __init__(self, session, *args):
     self.session = session
     ChannelSelectionBase.__init__(self, session)
     self.bouquet_mark_edit = 0
     self["status"] = Label()
     self["assign"] = Label()
     self["key_green"] = Button(_("Satellites"))
     self["key_blue"] = Button(_("Favourites"))
     self["ChannelSelectBaseActions"] = ActionMap(
         ["IPtoSATActions"], {
             "cancel": self.exit,
             "ok": self.channelSelected,
             "left": self.left,
             "right": self.right,
             "down": self.moveDown,
             "up": self.moveUp,
             "green": self.showSatellites,
             "blue": self.showFavourites,
             "nextBouquet": self.chUP,
             "prevBouquet": self.chDOWN,
         }, -2)
     self.errortimer = eTimer()
     try:
         self.errortimer.callback.append(self.errorMessage)
     except:
         self.errortimer_conn = self.errortimer.timeout.connect(
             self.errorMessage)
     self.in_bouquets = False
     self.in_channels = False
     self.url = None
     self.channels = []
     self.categories = []
     self['list2'] = MenuList([])
     self.selectedList = self["list"]
     self.getUserData()
     self.onLayoutFinish.append(self.setModeTv)
     self.onShown.append(self.onWindowShow)