def setHorMenuElements(self, depth):
		self.depth = depth

		self.setRangeList()

		highlighted = parseColor("#e17e76")
		normal = parseColor("#ffffff")

		for i in self.rangeList:
			self[str(i)] = MultiColorLabel()
			self[str(i)].foreColors = [highlighted, normal]
			self[str(i)].show()
    def setHorMenuElements(self, depth):
        self.depth = depth

        self.setRangeList()

        highlighted = parseColor("#e17e76")
        normal = parseColor("#ffffff")

        for i in self.rangeList:
            self[str(i)] = MultiColorLabel()
            self[str(i)].foreColors = [highlighted, normal]
            self[str(i)].show()
Exemplo n.º 3
0
	def setMultiLevelElements(self, levels):
		printl("", self, "S")
		self.levels = levels

		highlighted = parseColor(getSkinHighlightedColor())
		normal = parseColor(getSkinNormalColor())

		for i in range(1,int(levels)+1):
			self["L"+str(i)] = MultiColorLabel()
			self["L"+str(i)].foreColors = [highlighted, normal]
			self["L"+str(i)].setText(str(i))

		printl("", self, "C")
Exemplo n.º 4
0
    def setMultiLevelElements(self, levels):
        printl("", self, "S")
        self.levels = levels

        highlighted = parseColor(getSkinHighlightedColor())
        normal = parseColor(getSkinNormalColor())

        for i in range(1, int(levels) + 1):
            self["L" + str(i)] = MultiColorLabel()
            self["L" + str(i)].foreColors = [highlighted, normal]
            self["L" + str(i)].setText(str(i))

        printl("", self, "C")
Exemplo n.º 5
0
    def setHorMenuElements(self, depth):
        printl("", self, "S")
        self.depth = depth

        self.setRangeList()

        highlighted = parseColor(self.highlightedColor)
        normal = parseColor(self.normalColor)

        for i in self.rangeList:
            self[str(i)] = MultiColorLabel()
            self[str(i)].foreColors = [highlighted, normal]
            self[str(i)].show()

        printl("", self, "C")
Exemplo n.º 6
0
	def setHorMenuElements(self, depth):
		printl("", self, "S")
		self.depth = depth

		self.setRangeList()

		highlighted = parseColor(self.highlightedColor)
		normal = parseColor(self.normalColor)

		for i in self.rangeList:
			self[str(i)] = MultiColorLabel()
			self[str(i)].foreColors = [highlighted, normal]
			self[str(i)].show()

		printl("", self, "C")
Exemplo n.º 7
0
 def __init__(self, session):
     Screen.__init__(self, session)
     self.skin = BabelZapper.skin
     global babelmenu
     print("[BABELZAPPER] loading %s/babelzapper.zbb" % babelzapper_menus)
     global babelkey
     babelmenu = []
     babelmenu.append(("NONE", "END"))
     if os.path.exists("%s/babelzapper.zbb" % babelzapper_menus):
         f = open("%s/babelzapper.zbb" % babelzapper_menus, 'r')
         line = f.readline().replace("\r", "").replace("\n", "")
         while (line):
             bz = line.split(";")
             if len(bz) < 2:
                 print("[BABELZAPPER] wrong line %s in babelzapper.zbb" %
                       line)
                 babelmenu.append(("????", "PRINT ???? %s" % line))
             else:
                 babelmenu.append((bz))
             line = f.readline().replace("\r", "").replace("\n", "")
         f.close()
     babelkey = -1
     self["babelzapper"] = MultiColorLabel(babelmenu[babelkey][0])
     self["babelzapper"].setForegroundColorNum(0)
     self["babelzapper"].setBackgroundColorNum(1)
    def __init__(self, session):
        Screen.__init__(self, session)
        HelpableScreen.__init__(self)
        self.skinName = "PluginHiderSetup_New"

        # Initialize widgets
        self["key_green"] = StaticText(_("OK"))
        self["key_red"] = StaticText(_("Cancel"))
        self["key_yellow"] = StaticText("")
        self["key_blue"] = StaticText(_("Run"))
        self["plugins"] = Label(_("Pluginbrowser"))
        self["extensions"] = Label(_("Extensions"))
        self["eventinfo"] = Label(_("Eventinfo"))
        self["movielist"] = Label(_("Movielist"))
        self["selectedlistColors"] = MultiColorLabel()

        self["list"] = SelectionList([])
        self.selectedList = LIST_PLUGINS

        self["PluginHiderSetupActions"] = HelpableActionMap(
            self, "PluginHiderSetupActions", {
                "ok": (self["list"].toggleSelection, _("toggle selection")),
                "cancel": (self.cancel, _("end editing")),
                "green": (self.save, _("save")),
                "blue": (self.run, _("run selected plugin")),
                "next": (self.next, _("select next tab")),
                "previous": (self.previous, _("select previous tab")),
            }, -1)

        self.onLayoutFinish.append(self.setCustomTitle)
Exemplo n.º 9
0
 def __init__(self, session):
     Screen.__init__(self, session)
     self.setTitle("Last Update Info Details")
     self.skin = Showinfo5.skin
     global infofile
     global info_topline
     info_topline = 0
     global info_bottomline
     infofile = "/tmp/freeservre88"
     f = open(infofile, "r")
     info_bottomline = 1
     line = f.readline()
     print line
     while (line):
         if len(line) > 1:
             info_bottomline = info_bottomline + 1
         line = f.readline()
         print line
     f.close()
     if info_bottomline < info_lines_Showinfo5:
         info_topline = 0
         info_bottomline = info_lines_Showinfo5
     self["Showinfo"] = MultiColorLabel("\n")
     self.ShowinfoPage()
     self.pagebackward
     self["setupActions"] = ActionMap(
         ["ColorActions", "SetupActions", "InfobarMovieListActions"], {
             "red": self.cancel,
             "cancel": self.cancel,
             "ok": self.cancel,
             "left": self.pagebackward,
             "right": self.pageforward,
             "up": self.backward,
             "down": self.forward,
         })
Exemplo n.º 10
0
    def __init__(self, session, url=None, is_webapp=False):
        Screen.__init__(self, session)
        self["actions"] = ActionMap(
            ["DirectionActions", "MenuActions", "OkCancelActions"], {
                "cancel": self.keyCancel,
                "ok": self.keyOK,
                "left": self.keyLeft,
                "right": self.keyRight,
                "up": self.keyUp,
                "down": self.keyDown,
                "menu": self.keyMenu
            }, -2)

        self._cb_update_language()

        self.idx_menu = 0
        self.is_browser_opened = False
        self.is_show_top = True
        self.is_show_menu = False

        self._current_url = None
        self._current_title = None

        self["topArea"] = Label()
        self["bottomArea"] = Label()

        self["menuitemFile"] = MultiColorLabel()
        self["menuitemTool"] = MultiColorLabel()
        self["menuitemHelp"] = MultiColorLabel()

        self.top_menus = [
            self["menuitemFile"], self["menuitemTool"], self["menuitemHelp"]
        ]

        self["menulist"] = MenuList(self.get_menulist_items(self.idx_menu))
        self["submenulist"] = MenuList(None)

        self.onLayoutFinish.append(self.layoutFinished)

        self._close_timer = eTimer()
        self._close_timer.callback.append(self._cb_stop_browser)

        self.m_url = url
        self.m_webapp = is_webapp
        language.addCallback(self._cb_update_language)
Exemplo n.º 11
0
    def __init__(self, session, project=None):
        Screen.__init__(self, session)
        HelpableScreen.__init__(self)

        self["titleactions"] = HelpableActionMap(
            self, "TitleList", {
                "addTitle":
                (self.addTitle, _("Add a new title"), _("Add title")),
                "titleProperties":
                (self.titleProperties, _("Properties of current title"),
                 _("Title properties")),
                "removeCurrentTitle":
                (self.removeCurrentTitle, _("Remove currently selected title"),
                 _("Remove title")),
                "settings":
                (self.settings, _("Collection settings"), _("Settings")),
                "burnProject": (self.askBurnProject, _("Burn to medium"),
                                _("Burn to medium")),
            })

        self["MovieSelectionActions"] = HelpableActionMap(
            self, "MovieSelectionActions", {
                "contextMenu": (self.showMenu, _("menu")),
            })

        self["actions"] = ActionMap(["OkCancelActions"],
                                    {"cancel": self.leave})

        self["key_red"] = StaticText()
        self["key_green"] = StaticText(_("Add title"))
        self["key_yellow"] = StaticText()
        self["key_blue"] = StaticText(_("Settings"))

        self["title_label"] = StaticText()
        self["error_label"] = StaticText()
        self["space_label"] = StaticText()
        self["hint"] = StaticText(_("Advanced Options"))
        self["medium_label"] = MultiColorLabel()
        self["space_bar_single"] = Progress()
        self["space_bar_dual"] = Progress()
        self["space_bar_bludisc"] = Progress()
        self["marker_single"] = StaticText(("SINGLE"))
        self["marker_dvd"] = StaticText(("DVD"))
        self["marker_dual"] = StaticText(("DUAL"))
        self["marker_bludisc"] = StaticText(("BLUDISC"))

        self["titles"] = List([])
        self.previous_size = 0
        if project is not None:
            self.project = project
        else:
            self.newProject()
        self.onLayoutFinish.append(self.layoutFinished)
Exemplo n.º 12
0
    def __init__(self, session):
        Screen.__init__(self, session)
        InfoBarBase.__init__(self, steal_current_service=True)
        InfoBarSeek.__init__(self, actionmap="CutlistSeekActions")
        HelpableScreen.__init__(self)
        self.old_service = session.nav.getCurrentlyPlayingServiceReference()
        self.session.nav.stopService()

        self["key_red"] = StaticText(_("Exit"))
        self["key_green"] = StaticText(_("Play"))
        self["key_yellow"] = StaticText((""))
        self["key_blue"] = StaticText(_("Fullscreen"))
        self["connection_label"] = MultiColorLabel()
        self["do_blink"] = Boolean(False)
        self["pig_mode"] = Boolean(True)

        self["poster"] = Pixmap()
        self.picload = ePicLoad()
        self.picload_conn = self.picload.PictureData.connect(
            self.paintPosterPixmapCB)

        self["actions"] = ActionMap(
            [
                "OkCancelActions", "ColorActions", "InfobarSeekActions",
                "MediaPlayerActions"
            ], {
                "ok": self.keyOK,
                "cancel": self.exit,
                "stop": self.disconnect,
                "playpauseService": self.playpauseService,
                "red": self.exit,
                "green": self.keyOK,
                "blue": self.keyBlue,
                "yellow": self.keyYellow,
                "seekFwd": self.keyPass
            }, -4)

        self.__event_tracker = ServiceEventTracker(
            screen=self,
            eventmap={
                iPlayableService.evStart: self.__serviceStarted,
                iPlayableService.evUpdatedEventInfo: self.__streamStarted,
                iPlayableService.evTuneFailed: self.__streamFailed,
                iPlayableService.evEOF: self.__evEOF,
                iPlayableService.evUser + 15: self.__streamFailed
            })

        self.onClose.append(self.__onClose)
        self.onExecBegin.append(self.__onExecBegin)

        self.setState(self.STATE_DISCONNECTED)
Exemplo n.º 13
0
    def __init__(self, session, download):
        BaseArchivCZSKScreen.__init__(self, session)
        self.title = _("Download progress")

        self["filename"] = Label("")
        self["size_label"] = Label(_("Size:"))
        self["size"] = Label("")
        self["path_label"] = Label(_("Path:"))
        self["path"] = Label("")
        self["start_label"] = Label(_("Start time:"))
        self["start"] = Label("")
        self["finish_label"] = Label(_("Finish time:"))
        self["finish"] = Label("")
        self["state_label"] = Label(_("State:"))
        self["state"] = MultiColorLabel("")
        self["speed_label"] = Label(_("Speed:"))
        self["speed"] = Label("0 KB/s")
        self["status"] = Label("")

        self["actions"] = ActionMap(["WizardActions", "DirectionActions"],
        {
            "ok": self.cancel,
            "back": self.cancel,
        }, -1)

        self._download = download

        self._download.onOutputCB.append(self.outputCallback)
        self._download.onFinishCB.append(self.updateState)
        self._download.onFinishCB.append(self.updateFinishTime)
        self._download.onFinishCB.append(self.stopTimer)

        self.timer = eTimer()
        self.timer_conn = eConnectCallback(self.timer.timeout, self.updateStatus)
        self.timer_interval = 3000

        self.onShown.append(self.updateStaticInfo)
        self.onShown.append(self.updateState)
        self.onShown.append(self.updateFinishTime)
        self.onShown.append(self.startTimer)

        self.onLayoutFinish.append(self.startRun)  # dont start before gui is finished
        self.onLayoutFinish.append(self.updateGUI)



        self.onClose.append(self.__onClose)
Exemplo n.º 14
0
    def __init__(self,
                 session,
                 showDirectories=True,
                 showFiles=True,
                 showMountpoints=True,
                 matchingPattern=None,
                 useServiceRef=False,
                 inhibitDirs=False,
                 inhibitMounts=False,
                 isTop=False,
                 enableWrapAround=False,
                 additionalExtensions=None,
                 closeOnSelection=False):
        Screen.__init__(self, session)
        self.skinName = "FileBrowser_Generic"

        defaultDir = None  # TODO Fix / Config value
        self._closeOnSelection = closeOnSelection
        self._filelist = FileList(defaultDir,
                                  showDirectories=showDirectories,
                                  showFiles=showFiles,
                                  showMountpoints=showMountpoints,
                                  matchingPattern=matchingPattern,
                                  useServiceRef=useServiceRef,
                                  inhibitDirs=inhibitDirs,
                                  inhibitMounts=inhibitMounts,
                                  isTop=isTop,
                                  enableWrapAround=enableWrapAround,
                                  additionalExtensions=additionalExtensions)

        self["filelist"] = self._filelist
        self["status"] = MultiColorLabel("")

        self["key_green"] = Button(_("Add"))
        self["green"] = Pixmap()

        self["actions"] = ActionMap(
            ["ListboxActions", "OkCancelActions", "ColorActions"], {
                "ok": self.ok,
                "cancel": self.close,
                "moveUp": self.moveUp,
                "moveDown": self.moveDown,
                "pageUp": self.pageUp,
                "pageDown": self.pageDown,
                "green": self.selectCurrent,
            })
        self.onShown.append(self._onShown)
Exemplo n.º 15
0
 	def __init__(self, session):
		Screen.__init__(self, session)
		self.skin = MyStatus.skin
		self.version =  version
	        self.setTitle('FreeServer %s' % self.version)
                #self.setTitle('PayPal Info')
                #self["label"] = label()	
                global infofile
		global info_topline
		info_topline=0
		global info_bottomline
		infofile = "/usr/lib/enigma2/python/Plugins/Extensions/FreeServer/config/status.txt"
                f = open(infofile,"r")                   
		info_bottomline=1
		line=f.readline()
		print line
                while (line):
			if len(line) > 1:
                              	info_bottomline=info_bottomline+1     
			line=f.readline()
			print line
                f.close()
		if info_bottomline < info_lines:
			info_topline=0
			info_bottomline=info_lines
 		self["MyStatus"] = MultiColorLabel("\n")
		self.MyStatusPage()
        	self.pagebackward                                                                      
                self["setupActions"] = ActionMap([ "ColorActions", "SetupActions", "InfobarMovieListActions" ],                         
                        {                                                                                    
                        "red": self.cancel,                                                                  
                        "cancel": self.cancel,                                                               
                        "ok": self.cancel,                                                                     
		        "left": self.pagebackward,                                                                           
			"right": self.pageforward,                                                                       
		        "up": self.backward,                                                                           
			"down": self.forward,                                                                       
                        })                                                                                   
                self['label'] = Label('\n\nDo you like the plugin?\nWould you like to support development and make a donation?\nPlease proceed as follows:\n1. Log in to PayPal\n2. Click on: send money\n3. Send money to your friends and family\n4. E-mail address: [email protected]\n5. Amount: 5 euro\n6. Send money\nOr go to the next link: http://bit.ly/2Piar1L\nhttp://bit.ly/2Piar1L\nThank you!')
Exemplo n.º 16
0
    def __init__(self, session, type=MediaCore.TYPE_AUDIO, player=None):
        Screen.__init__(self, session)
        self.skinName = "MediaBrowser"

        self._player = player
        self._type = type
        if type == MediaCore.TYPE_AUDIO:
            self.title = "%s - %s" % (self.TITLE, _("Music"))
        elif type == MediaCore.TYPE_VIDEO:
            self.title = "%s - %s" % (self.TITLE, _("Video"))
        else:
            self.title = self.TITLE
        self.setTitle(self.title)

        self._list = None

        self["button_green"] = Boolean(False)
        self["button_blue"] = Boolean(False)

        self["add"] = Label(_("Add"))
        self["add_and_play"] = Label(_("Add & play"))
        self["status"] = MultiColorLabel("")
        self._summary_list = StaticText("")
        self["summary_list"] = self._summary_list

        self["actions"] = ActionMap(
            ["ListboxActions", "OkCancelActions", "ColorActions"], {
                "ok": self.ok,
                "cancel": self._close,
                "green": self.addCurrentToPlaylist,
                "blue": self.addAndPlaySelected
            }, -99)

        self._loadMessageBox = None

        self.onFirstExecBegin.append(self.__onFirstExecBegin)
Exemplo n.º 17
0
    def creatLables(self):
        if iNetwork.isWirelessInterface(self.testiface):
            self["ConfigWifiText"] = MultiColorLabel(
                _("WLAN connection config"))  #
        else:
            self["ConfigWifiText"] = MultiColorLabel(
                _("LAN connection config"))  #

        self["ConfigTestInfo"] = MultiColorLabel()  #Teststatus
        #		self["ConfigTestInfo"] = StaticText("")
        self["ConfigTest_OK"] = MultiPixmap()  #testicon
        self["ConfigTest_OK"].hide()

        self["DhcpText"] = MultiColorLabel(_("DHCP"))  #
        self["DhcpTestInfo"] = MultiColorLabel()  #Teststatus
        self["DhcpTest_OK"] = MultiPixmap()  #testicon
        self["DhcpTest_OK"].hide()

        self["connectText"] = MultiColorLabel(_("Network Connection Test"))  #
        self["connectTestInfo"] = MultiColorLabel()  #Teststatus
        self["connectTest_OK"] = MultiPixmap()  #testicon
        self["connectTest_OK"].hide()

        self["opreateInfo"] = Label(_("Press 'OK' start"))
Exemplo n.º 18
0
 def __init__(self, text, state=0):
     MultiColorLabel.__init__(self, text)
     self.changeLabel(state)
Exemplo n.º 19
0
 def __init__(self, text, state=0):
     MultiColorLabel.__init__(self, text)
     self.changeLabel(state)
Exemplo n.º 20
0
    def __init__(self, session, plugin_path):
        Screen.__init__(self, session)
        self.onShow.append(self.__onShow)
        self.skin = SKIN
        self.skin_path = plugin_path

        # Configuration values
        self.upperBound = int(config.plugins.AC3LipSync.outerBounds.getValue())
        self.lowerBound = -1 * self.upperBound
        self.arrowStepSize = int(
            config.plugins.AC3LipSync.arrowStepSize.getValue())
        self.stepSize = {}
        self.stepSize["3"] = int(
            config.plugins.AC3LipSync.stepSize13.getValue())
        self.stepSize["1"] = -1 * self.stepSize["3"]
        self.stepSize["6"] = int(
            config.plugins.AC3LipSync.stepSize46.getValue())
        self.stepSize["4"] = -1 * self.stepSize["6"]
        self.stepSize["9"] = int(
            config.plugins.AC3LipSync.stepSize79.getValue())
        self.stepSize["7"] = -1 * self.stepSize["9"]
        self.keyStep = {}
        self.keyStep["0"] = 0
        self.keyStep["2"] = int(
            config.plugins.AC3LipSync.absoluteStep2.getValue())
        self.keyStep["5"] = int(
            config.plugins.AC3LipSync.absoluteStep5.getValue())
        self.keyStep["8"] = int(
            config.plugins.AC3LipSync.absoluteStep8.getValue())

        # AC3delay instance
        self.AC3delay = AC3delay()

        # Last saved values
        self.savedValue = {}
        # Current Values
        self.currentValue = {}

        #OptionFields
        self["ChannelImg"] = MultiPixmap()
        self["GlobalImg"] = MultiPixmap()

        self["ChannelLabel"] = MultiColorLabel(_("Service delay"))
        self["GlobalLabel"] = MultiColorLabel(_("Global delay"))

        # Slider
        self["AudioSliderBar"] = ProgressBar()
        self["AudioSlider"] = Label(
            _("%i ms") % self.AC3delay.systemDelay[self.AC3delay.whichAudio])

        #Service Information
        self["ServiceInfoLabel"] = Label(_("Channel audio:"))
        self["ServiceInfo"] = Label()
        self.setChannelInfoText()

        # Buttons
        self["key_red"] = Label(_("Cancel"))
        self["key_green"] = Label(_("OK"))
        self["key_blue"] = Label(_("Save to key"))

        # Actions
        self["actions"] = HelpableNumberActionMap(
            self, "PluginAudioSyncActions", {
                "menu": (self.keyMenu, _("Open plugin menu")),
                "ok": (self.keyOk, _("Save values and close plugin")),
                "cancel":
                (self.keyCancel, _("Discard changes and close plugin")),
                "left": (self.keyLeft, _("Change active delay")),
                "right": (self.keyRight, _("Change active delay")),
                "up": (self.keyUp, _("Increase delay")),
                "down": (self.keyDown, _("Decrease delay")),
                "red": (self.keyCancel, _("Discard changes and close plugin")),
                "green": (self.keyOk, _("Save values and close plugin")),
                "blue":
                (self.menuSaveDelayToKey, _("Save current delay to key")),
                "1": (self.keyNumberRelative,
                      _("Decrease delay by %i ms (can be set)") %
                      self.stepSize["1"]),
                "3": (self.keyNumberRelative,
                      _("Increase delay by %i ms (can be set)") %
                      self.stepSize["3"]),
                "4": (self.keyNumberRelative,
                      _("Decrease delay by %i ms (can be set)") %
                      self.stepSize["4"]),
                "6": (self.keyNumberRelative,
                      _("Increase delay by %i ms (can be set)") %
                      self.stepSize["6"]),
                "7": (self.keyNumberRelative,
                      _("Decrease delay by %i ms (can be set)") %
                      self.stepSize["7"]),
                "9": (self.keyNumberRelative,
                      _("Increase delay by %i ms (can be set)") %
                      self.stepSize["9"]),
                "0":
                (self.keyNumberAbsolute,
                 _("Set delay to %i ms (can be set)") % self.keyStep["0"]),
                "2":
                (self.keyNumberAbsolute,
                 _("Set delay to %i ms (can be set)") % self.keyStep["2"]),
                "5":
                (self.keyNumberAbsolute,
                 _("Set delay to %i ms (can be set)") % self.keyStep["5"]),
                "8": (self.keyNumberAbsolute,
                      _("Set delay to %i ms (can be set)") % self.keyStep["8"])
            }, -1)

        HelpableScreen.__init__(self)
        MovableScreen.__init__(self, config.plugins.AC3LipSync,
                               [self["actions"]], 600, 460)
Exemplo n.º 21
0
    def __init__(self, session, EIB_objects):
        skin = """
		<screen position="center,center" size="550,450" title="E.I.B.ox" >
			<widget name="config" position="10,420" size="530,26" zPosition="1" transparent="1" scrollbarMode="showNever" />
			<ePixmap pixmap="%s" position="0,0" size="550,400" zPosition="-1" alphatest="on" />\n""" % (
            img_prefix + EIB_objects.zone_img)

        offset = [12, 10]  # fix up browser css spacing
        iconsize = [32, 32]

        self.setup_title = "E.I.B.ox"

        self.EIB_objects = EIB_objects
        for EIB_object in self.EIB_objects:
            if EIB_object.object_type == EIB_GOTO:
                pixmap_src = (img_prefix + 'goto' +
                              EIB_object.img.capitalize() + '.png')
                skin += '\t\t\t<widget name="%s" pixmap="%s" position="%s" size="32,32" transparent="1" alphatest="on" borderColor="#004679" zPosition="1" />\n' % (
                    EIB_object.object_id, pixmap_src,
                    EIB_object.getPos(offset))
                self[EIB_object.object_id] = Pixmap()

            elif EIB_object.object_type in (EIB_SWITCH, EIB_MULTISWITCH,
                                            EIB_DIMMER):
                if EIB_object.object_type == EIB_DIMMER or EIB_object.img == "light":
                    pixmaps_sources = ['light_off.png', 'light_on.png']
                elif EIB_object.img == "blinds":
                    pixmaps_sources = ['blinds_up.png', 'blinds_down.png']
                elif EIB_object.img == "outlet":
                    pixmaps_sources = ['outlet_off.png', 'outlet_on.png']
                elif EIB_object.img == "fan":
                    pixmaps_sources = ['fan_off.png', 'fan_on.png']
                elif EIB_object.img == "pump":
                    pixmaps_sources = ['pump_off.png', 'pump_on.png']
                else:
                    pixmaps_sources = list(EIB_object.custom_img)

                for idx, filename in enumerate(pixmaps_sources):
                    pixmaps_sources[idx] = img_prefix + filename
                pixmaps_string = ','.join(pixmaps_sources)
                skin += '\t\t\t<widget name="%s" pixmaps="%s" position="%s" size="32,32" transparent="1" alphatest="on" borderColor="#004679" zPosition="1" />\n' % (
                    EIB_object.object_id, pixmaps_string,
                    EIB_object.getPos(offset))
                self[EIB_object.object_id] = MultiPixmap()

                if EIB_object.object_type == EIB_DIMMER:
                    skin += '\t\t\t<widget source="%s_progress" render="Progress" pixmap="skin_default/progress_small.png" position="%s" size="32,5" backgroundColor="#4f74BB" zPosition="1" />\n' % (
                        EIB_object.object_id,
                        EIB_object.getPos([offset[0], offset[1] - iconsize[1]
                                           ]))
                    self[EIB_object.object_id + "_progress"] = Progress()
                    self[EIB_object.object_id + "_progress"].range = 255

            elif EIB_object.object_type in (EIB_THERMO, EIB_TEXT):
                skin += '\t\t\t<widget name="%s" position="%s" size="120,20" font="Regular;14" halign="left" valign="center" foregroundColors="#000000,#0000FF" transparent="1" zPosition="1" />\n' % (
                    EIB_object.object_id, EIB_object.getPos(offset))
                self[EIB_object.object_id] = MultiColorLabel()
        skin += """
		</screen>"""
        if config.eib.debug.value:
            print skin

        self.skin = skin
        Screen.__init__(self, session)
        self.initConfigList()
        ConfigListScreen.__init__(self,
                                  self.list,
                                  session=self.session,
                                  on_change=self.changedEntry)
        self.onChangedEntry = []

        self["actions"] = ActionMap(
            [
                "SetupActions", "OkCancelActions", "ColorActions",
                "DirectionActions"
            ], {
                "up": self.keyUp,
                "upUp": self.keyPass,
                "upRepeated": self.keyUp,
                "down": self.keyDown,
                "downUp": self.keyPass,
                "downRepeated": self.keyDown,
                "leftRepeated": self.keyLeftRepeated,
                "rightRepeated": self.keyRightRepeated,
                "cancel": self.keyCancel,
                "red": self.keyCancel,
                "green": self.keyOk,
                "ok": self.keyOk
            }, -2)

        self.onLayoutFinish.append(self.layoutFinished)