Example #1
0
	def __init__(self, menuList, serverID, enableWrapAround = True):
		printl("", self, "S")
		self.serverID = serverID
		MenuList.__init__(self, menuList, enableWrapAround, eListboxPythonMultiContent)
		self.l.setFont(0, gFont("Regular", 20))
		self.l.setFont(1, gFont("Regular", 18))
		self.location = config.plugins.dreamplex.configfolderpath.value + "mountMappings"

		checkXmlFile(self.location)
		
		printl("", self, "C")
Example #2
0
    def __init__(self, menuList, serverID, enableWrapAround=True):
        printl("", self, "S")
        self.serverID = serverID
        MenuList.__init__(self, menuList, enableWrapAround,
                          eListboxPythonMultiContent)
        self.l.setFont(0, gFont("Regular", 20))
        self.l.setFont(1, gFont("Regular", 18))
        self.location = config.plugins.dreamplex.configfolderpath.value + "mountMappings"

        checkXmlFile(self.location)

        printl("", self, "C")
Example #3
0
    def __init__(self, session, serverID, plexInstance):
        printl("", self, "S")

        Screen.__init__(self, session)
        self["actions"] = ActionMap(
            ["ColorActions", "SetupActions"],
            {
                #"ok": self.startSelection,
                "cancel": self.cancel,
                "red": self.redKey,
                "green": self.greenKey,
                "yellow": self.yellowKey,
            },
            -1)

        self.guiElements = getGuiElements()
        self.plexInstance = plexInstance

        self.location = config.plugins.dreamplex.configfolderpath.value + "homeUsers"

        checkXmlFile(self.location)

        tree = getXmlContent(self.location)

        if tree is not None:
            self["content"] = DPS_UsersEntryList([], serverID, tree)
            self.updateList()
            self.error = False
        else:
            self.error = True

        self["btn_red"] = Pixmap()
        self["btn_redText"] = Label()

        self["btn_green"] = Pixmap()
        self["btn_greenText"] = Label()

        self["btn_yellow"] = Pixmap()
        self["btn_yellowText"] = Label()

        self.onShown.append(self.finishLayout)

        printl("", self, "C")
Example #4
0
	def __init__(self, session, serverID, plexInstance):
		printl("", self, "S")
		
		Screen.__init__(self, session)
		self["actions"] = ActionMap(["ColorActions", "SetupActions" ],
		{
		#"ok": self.startSelection,
		"cancel": self.cancel,
		"red": self.redKey,
		"green": self.greenKey,
		"yellow": self.yellowKey,
		}, -1)
		
		self.guiElements = getGuiElements()
		self.plexInstance = plexInstance

		self.location = config.plugins.dreamplex.configfolderpath.value + "homeUsers"

		checkXmlFile(self.location)

		tree = getXmlContent(self.location)

		if tree is not None:
			self["content"] = DPS_UsersEntryList([], serverID, tree)
			self.updateList()
			self.error = False
		else:
			self.error = True

		self["btn_red"]			= Pixmap()
		self["btn_redText"]		= Label()

		self["btn_green"]		= Pixmap()
		self["btn_greenText"]   = Label()

		self["btn_yellow"]		= Pixmap()
		self["btn_yellowText"]   = Label()

		self.onShown.append(self.finishLayout)
		
		printl("", self, "C")