Ejemplo n.º 1
0
    def __init__(self, session, online, list = None, multi = None, devrootfs = None, mtdkernel = None, mtdrootfs = None):
        global imagesCounter
        Screen.__init__(self, session)
        self.session = session
        Screen.setTitle(self, _('Flash On the fly (select a image)'))
        # self['key_green'] = Button(_('Flash'))
        # self['key_red'] = Button(_('Exit'))
        # self['key_blue'] = Button('')
        # self['key_yellow'] = Button('') 
#edit lululla
        self['key_green'] = Label(_('Flash'))
        self['key_red'] = Label(_('Exit'))        
        self['key_blue'] = Label('')
        self['key_yellow']= Label('')
        
        self.imagesCounter = imagesCounter
        self.filename = None
        self.imagelist = []
        self.simulate = False
        self.Online = online
        self.backuppath = getBackupPath()
        self.backupfile = getBackupFilename()
        self.fullbackupfilename = self.backuppath + '/' + self.backupfile
        self.List = list
        self.multi = multi
        self.devrootfs = devrootfs
        self.MTDKERNEL = mtdkernel
        self.MTDROOTFS = mtdrootfs
        self.imagePath = imagePath
        self.feedurl = images[self.imagesCounter][1]
        self['imageList'] = MenuList(self.imagelist)
        self['actions'] = ActionMap(['OkCancelActions', 'ColorActions'], {'green': self.green,
         'ok': self.green,
         'yellow': self.yellow,
         'red': self.quit,
         'blue': self.blue,
         'cancel': self.quit}, -2)
        self.onLayoutFinish.append(self.layoutFinished)
        return
Ejemplo n.º 2
0
 def __init__(self, session, args=0):
     self.session = session
     Screen.__init__(self, session)
     self.skin = CrashReader.skin
     self['actions'] = ActionMap(
         ['OkCancelActions', 'ColorActions'], {
             'ok': self.close,
             'cancel': self.close,
             'green': self.deleteall,
             'red': self.deletecrash,
             'blue': self.readfull,
             'yellow': self.readshort
         }, -1)
     self['key_green'] = Button(_('delete all'))
     self['key_blue'] = Button(_('show full'))
     self['key_red'] = Button(_('delete'))
     self['key_yellow'] = Button(_('show short'))
     self['info'] = Label()
     list = []
     self['list'] = MenuList(list)
     self['list'].onSelectionChanged.append(self.selectionChanged)
     self.onShown.append(self.filllist)
Ejemplo n.º 3
0
    def __init__(self, session):
        Screen.__init__(self, session)
        Screen.setTitle(self, _("Bluetooth Devices Manager"))

        self.taskManager = TaskManager()

        self["actions"] = ActionMap(
            [
                "OkCancelActions", "WizardActions", "ColorActions",
                "SetupActions", "NumberActions", "MenuActions"
            ], {
                "ok": self.keyOK,
                "cancel": self.keyCancel,
                "red": self.keyCancel,
                "green": self.keyGreen,
                "yellow": self.keyYellow,
                "blue": self.keyBlue,
            }, -1)

        self["key_red"] = Label(_("Exit"))
        self["key_green"] = Label(_("(Re)Scan"))
        self["key_yellow"] = Label(_("Connect"))
        self["key_blue"] = Label(_("Config"))

        self["ConnStatus"] = Label(_("No connected to any device"))

        self.devicelist = []
        self["devicelist"] = MenuList(self.devicelist)

        if config.btdevicesmanager.autostart.getValue():
            self.initDevice()
        if brandoem in ("xcore", "edision"):
            self.initDevice()
            self.showConnections()

        self.refreshStatusTimer = eTimer()
        self.refreshStatusTimer.callback.append(self.cbRefreshStatus)
        self.cb_mac_address = None
        self.cb_name = None
Ejemplo n.º 4
0
 def __init__(self, session, distro):
     Screen.__init__(self, session)
     self.session = session
     ImageVersion = getImageVersion()
     Screen.setTitle(self, _('NFR4XBoot - Download Image'))
     self['key_green'] = Button(_('Install'))
     self['key_red'] = Button(_('Exit'))
     self.filename = None
     self.imagelist = []
     self.simulate = False
     self.imagePath = '/media/nfr4xboot/NFR4XBootUpload'
     self.distro = distro
     if self.distro == 'opennfr':
         self.feed = 'opennfr'
         self.feedurl = 'http://dev.nachtfalke.biz/nfr/feeds/%s/images' %ImageVersion
     elif self.distro == 'diverse':
         self.feed = 'diverse'
         self.feedurl = 'http://dev.nachtfalke.biz/nfr/feeds/sh4/4.3/images/fremdimages'
     elif self.distro == 'openar':
         self.feed = 'openar'
         self.feedurl = 'http://taapat.ho.ua/Download'            
     elif self.distro == 'openatv':
         self.feed = 'openatv'
         self.feedurl = 'http://images1.mynonpublic.com/openatv/4.2'
     elif self.distro == 'openatv-5.2':
         self.feed = 'openatv'
         self.feedurl = 'http://images1.mynonpublic.com/openatv/5.2'    
     elif self.distro == 'vixe2sh4':
         self.feed = 'vixe2sh4'
         self.feedurl = 'http://www.vix4.com/downloads/'           
     else:
         self.feed = 'opennfr'
         self.feedurl = 'http://dev.nachtfalke.biz/nfr/feeds/5.2/images'
     self['imageList'] = MenuList(self.imagelist)
     self['actions'] = ActionMap(['OkCancelActions', 'ColorActions'], {'green': self.green,
      'red': self.quit,
      'cancel': self.quit}, -2)
     self.onLayoutFinish.append(self.layoutFinished)
     return
Ejemplo n.º 5
0
 def __init__(self, session, generalSettings, searchSettings,
              externalSettings, embeddedSettings, dvbSettings):
     Screen.__init__(self, session)
     self.generalSettings = generalSettings
     self.searchSettings = searchSettings
     self.externalSettings = externalSettings
     self.embeddedSettings = embeddedSettings
     self.dvbSettings = dvbSettings
     self["menuList"] = MenuList([
         (_("General settings"), "general"),
         (_("External subtitles settings"), "external"),
         (_("Embedded subtitles settings"), "embedded"),
         (_("Search settings"), "search"), (_("DVB player settings"), "dvb")
     ])
     self["actionmap"] = ActionMap(
         ["OkCancelActions", "DirectionActions"], {
             "up": self["menuList"].up,
             "down": self["menuList"].down,
             "ok": self.confirmSelection,
             "cancel": self.close,
         })
     self.onLayoutFinish.append(self.setWindowTitle)
    def __init__(self, session, device, partition):
        Screen.__init__(self, session)

        self.device = device
        self.partition = partition
        self.mountpoints = MountPoints()
        self.mountpoints.read()
        self.fast = False

        self.list = []
        self.list.append(_("Mount as main hdd"))
        self.list.append(_("Mount as /media/hdd1"))
        self.list.append(_("Mount as /media/hdd2"))
        self.list.append(_("Mount as /media/hdd3"))
        self.list.append(_("Mount as /media/hdd4"))
        self.list.append(_("Mount as /media/hdd5"))
        self.list.append(_("Mount as /media/usb"))
        self.list.append(_("Mount as /media/usb1"))
        self.list.append(_("Mount as /media/usb2"))
        self.list.append(_("Mount as /media/usb3"))
        self.list.append(_("Mount as /media/usb4"))
        self.list.append(_("Mount as /media/usb5"))
        self.list.append(_("Mount on custom path"))

        self["menu"] = MenuList(self.list)

        self["key_red"] = Button(_("Fixed mount"))
        self["key_green"] = Button(_("Fast mount"))
        self["key_blue"] = Button(_("Exit"))
        self["key_yellow"] = Button("")
        self["actions"] = ActionMap(
            ["OkCancelActions", "ColorActions"], {
                "blue": self.quit,
                "green": self.green,
                "red": self.ok,
                "cancel": self.quit,
            }, -2)

        self.onShown.append(self.setWindowTitle)
Ejemplo n.º 7
0
	def __init__(self, session, action, value):
		Screen.__init__(self, session)

		self.imagedir = "/tmp/openRteImg/"
		self.action = action
		self.value = value
		osdList = []
		if self.action is "start":
			osdList.append((_("Search"), "search"))
			osdList.append((_("Latest Episodes"), "latest"))
			osdList.append((_("Most Popular Episodes"), "pop"))
			osdList.append((_("Episodes by Date"), "by_date"))
			osdList.append((_("Show Categories"), "cats"))
			osdList.append((_("Shows A to Z"), "a_z"))
			osdList.append((_("Back"), "exit"))

		self["RTEMenu"] = MenuList(osdList)
		self["myActionMap"] = ActionMap(["SetupActions"],
		{
			"ok": self.go,
			"cancel": self.cancel
		}, -1)
Ejemplo n.º 8
0
 def __init__(self, session):
     Screen.__init__(self, session)
     self.skinName = "Settings"
     title = "Configure Mainmenu"
     self.setTitle(title)
     self["list"] = MenuList([])
     self["info"] = Label()
     #		self["KEY_HELP"] = Button(_("HELP"))
     #                self["actions"] = ActionMap(["OkCancelActions", "HelpActions"], {"ok": self.okClicked, "cancel": self.close, "displayHelp" : self.readme}, -1)
     self["actions"] = ActionMap(["OkCancelActions"], {
         "ok": self.okClicked,
         "cancel": self.close
     }, -1)
     self.cur = config.usage.mainmenu_mode.value
     if self.cur == "horzicon":
         txt = "Current Mainmenu list setting is Horizontal-icon.\nHere you can change it.\nAfter select enigma will restart."
     elif self.cur == "vert":
         txt = "Current Mainmenu list setting is Vertical.\nHere you can change it.\nAfter select enigma will restart."
     elif self.cur == "horzanim":
         txt = "Current Mainmenu list setting is Horizontal-Animated.\nHere you can change it.\nAfter select enigma will restart."
     self["info"].setText(txt)
     self.onLayoutFinish.append(self.startSession)
Ejemplo n.º 9
0
 def __init__(self, session,param=None):
     self.session = session
     skin = skin_path + 'SERVERmodel.xml'
     with open(skin, 'r') as f:
         self.skin = f.read()        
     Screen.__init__(self, session)        
     self.setTitle(_('Sat-Lodge Panel V. %s' % currversion))         
     
     self['title'] = Label("Models")
     self['key_green'] = Label(_('Select'))
     self['key_red'] = Label(_('Back'))		
     self.list = []
     self.param=param
     self['list'] = MenuList([], True, eListboxPythonMultiContent)              
     self.downloading = False        
     self.downloading = True
     self['actions'] = ActionMap(['SetupActions', 'ColorActions'], {'ok': self.okClicked,
      'green': self.okClicked,
      'red': self.close,		 
      'cancel': self.close}, -2)
     self.ListToMulticontent()
     return
Ejemplo n.º 10
0
	def __init__(self, session, timer):
		Screen.__init__(self, session)
		self.timer = timer
		print "TimerSanityConflict"

		self["timer1"] = TimerList(self.getTimerList(timer[0]))
		self.list = []
		self.list2 = []
		count = 0
		for x in timer:
			if count != 0:
				self.list.append((_("Conflicting timer") + " " + str(count), x))
				self.list2.append((timer[count], False))
			count += 1
		if count == 1:
			self.list.append((_("Channel not in services list")))

		self["list"] = MenuList(self.list)
		self["timer2"] = TimerList(self.list2)

		self["key_red"] = Button(_("Edit"))
# 		self["key_green"] = Button(" ")
		self["key_yellow"] = Button(" ")
		self["key_blue"] = Button(" ")

		self.key_green_choice = self.EMPTY
		self.key_yellow_choice = self.EMPTY
		self.key_blue_choice = self.EMPTY

		self["actions"] = ActionMap(["OkCancelActions", "DirectionActions", "ShortcutActions", "TimerEditActions"],
			{
				"ok": self.leave_ok,
				"cancel": self.leave_cancel,
				"red": self.editTimer1,
				"up": self.up,
				"down": self.down
			}, -1)
		self.setTitle(_("Timer sanity error"))
		self.onShown.append(self.updateState)
Ejemplo n.º 11
0
	def __init__(self, session, args = None):
		self.setTitle(_("Skin Selector"))
		self.skinlist = []
		self.previewPath = ""
		if self.SKINXML and os.path.exists(os.path.join(self.root, self.SKINXML)):
			self.skinlist.append(self.DEFAULTSKIN)
		if self.PICONSKINXML and os.path.exists(os.path.join(self.root, self.PICONSKINXML)):
			self.skinlist.append(self.PICONDEFAULTSKIN)
		for root, dirs, files in os.walk(self.root, followlinks=True):
			for subdir in dirs:
				dir = os.path.join(root,subdir)
				if os.path.exists(os.path.join(dir,self.SKINXML)):
					self.skinlist.append(subdir)
			dirs = []

		self["key_red"] = StaticText(_("Close"))
		self["key_green"] = StaticText(_("Save"))
		self["introduction"] = StaticText(_("Press OK to activate the selected skin."))
		self["SkinList"] = MenuList(self.skinlist)
		self["Preview"] = Pixmap()
		self.skinlist.sort()

		self["actions"] = NumberActionMap(["SetupActions", "DirectionActions", "TimerEditActions", "ColorActions"],
		{
			"ok": self.ok,
			"cancel": self.close,
			"red": self.close,
			"green": self.ok,
			"up": self.up,
			"down": self.down,
			"left": self.left,
			"right": self.right,
			"log": self.info,
		}, -1)

		self.picload = ePicLoad()
		self.picload.PictureData.get().append(self.showPic)

		self.onLayoutFinish.append(self.layoutFinished)
Ejemplo n.º 12
0
	def __init__(self, session, action, value, url):
		Screen.__init__(self, session)
		Screen.setTitle(self, _("iRadio Player - Tunein Main Menu"))

		self.action = action
		self.value = value
		self.genreurl = url
		osdList = []

		osdList.append((_("Search"), "search", "false"))

		# Read the URL for the selected category on the Main Menu.
		try:
			# Read the Genre List from Shoutcast.
			xml = wgetUrl(self.genreurl)

			# Parse the XML with elementTree
			tree = ET.fromstring(xml)

			# Find the first element <outline>
			for elem in tree.iter('outline'):
				# Iterate through the elements
				name_tmp = str(elem.get('text'))
				name_split = name_tmp.rsplit('(', 1)
				name = tidyString(name_split[0])
				id = str(elem.get('URL'))
				osdList.append((_(name), id, "false"))

		except (Exception) as exception:
			print 'tuneinGenresMenu: Error parsing genres: ', exception

		osdList.append((_("Exit"), "exit", "false"))

		self["tuneinGenresMenu"] = MenuList(osdList)
		self["myActionMap"] = ActionMap(["SetupActions"],
		{
			"ok": self.go,
			"cancel": self.cancel
		}, -1)
Ejemplo n.º 13
0
 def __init__(self, session):
     self.skin = OPDBootInstallation_Skin
     Screen.__init__(self, session)
     self.list = []
     self['config'] = MenuList(self.list)
     self['key_red'] = Label(_('Install'))
     self['key_green'] = Label(_('Cancel'))
     self['key_blue'] = Label(_('Devices Panel'))
     self['label1'] = Label(
         _('Welcome to OPDBoot %s MultiBoot Plugin installation.') %
         PLUGINVERSION)
     self['label2'] = Label(
         _('Here is the list of mounted devices in Your STB\n\nPlease choose a device where You would like to install OPDBoot:'
           ))
     self['actions'] = ActionMap(
         ['WizardActions', 'ColorActions'], {
             'red': self.install,
             'green': self.close,
             'back': self.close,
             'blue': self.devpanel
         })
     self.updateList()
Ejemplo n.º 14
0
    def build(self):

        #self["myMenu"] = MenuList(self.buildlist(), False, eListboxPythonMultiContent)
        #self.act = self.myaction(self)

        #
        #self["myMenu"].l.setFont(0, gFont("Regular", 20))
        #self["myMenu"].l.setFont(1, gFont("Regular", 14))
        #self["myMenu"].l.setItemHeight(40)

        #self["myMenu"].onSelectionChanged = [self.Changed]

        self.list = self.buildlist()
        self["myMenu"] = MenuList(self.list, False, eListboxPythonMultiContent)

        self["feedlist"] = List()
        self['feedlist'].setList(self.list)
        import pprint
        pprint.pprint(self.list)

        #self["feedlist"].onSelectionChanged = [self.onMenuChanged]

        self["Description"] = Label("")

        self["red"] = Label("Download")
        self["green"] = Label("Upload")
        self["yellow"] = Label("Edit")
        self["blue"] = Label("Delete")

        #self.actions['red'] = self.ActionHelperDownload
        #self.actions['green'] = self.ActionHelperUpload
        #self.actions['yellow'] = self.ActionHelperEdit
        #self.actions['blue'] = self.ActionHelperDelete
        #self.actions['0'] = self.ActionHelperAdd

        self.context = [
            "ChannelSelectBaseActions", "WizardActions", "DirectionActions",
            "MenuActions", "NumberActions", "ColorActions"
        ]
Ejemplo n.º 15
0
 def __init__(self, session):
     Screen.__init__(self, session)
     self.list = []
     self['text'] = MenuList([])
     self["info"] = Label()
     self.addon = "Picons"
     self.icount = 0
     self.downloading = False
     self.mount = True
     Screen.__init__(self, session)
     self['pixmap'] = Pixmap()
     self['actions'] = ActionMap(
         ['OkCancelActions', 'ColorActions', 'DirectionActions'], {
             'ok': self.okClicked,
             'cancel': self.close,
             'red': self.close
         }, -1)
     self['Key_Red'] = Label(_('Exit'))
     self["info"].setText("Connetting to\nAddons server...please wait")
     self.timer = eTimer()
     self.timer.callback.append(self.load)
     self.timer.start(200, 3)
Ejemplo n.º 16
0
    def __init__(self, session, tag=""):
        Screen.__init__(self, session)
        self.setTitle(_("Internet radio"))
        self.skinName = ["GreekNetRadioCategory", "GreekNetRadio"]

        self["key_red"] = StaticText(_("Close"))
        self["key_green"] = StaticText("")
        self["key_blue"] = StaticText("")

        self.tag = tag
        self.stationsList = []
        self.setStationsList()
        self["menu"] = MenuList(self.stationsList)

        self["actions"] = ActionMap(
            ["OkCancelActions", "ColorActions"], {
                "cancel": self.close,
                "red": self.close,
                "ok": self.go,
                "green": self.go,
                "blue": self.blue,
            }, -2)
Ejemplo n.º 17
0
    def __init__(self, session):
        Screen.__init__(self, session)
        self["actions"] = ActionMap(
            [
                "OkCancelActions", "ShortcutActions", "WizardActions",
                "ColorActions", "SetupActions", "NumberActions", "MenuActions"
            ], {
                "ok": self.keyOK,
                "cancel": self.keyCancel,
                "red": self.keyCancel,
                "green": self.keyGreen,
                "yellow": self.keyYellow,
                "blue": self.keyBlue,
            }, -1)

        global DLNA_CONFIG_CLIENT_CONFNAME
        self.configFileName = DLNA_CONFIG_CLIENT_CONFNAME
        self["key_red"] = StaticText(_("Exit"))
        self["key_green"] = StaticText(_("Start"))
        self["key_yellow"] = StaticText(_("Setting"))
        self["key_blue"] = StaticText(_("Reload Device"))

        #self["devicelist"] = MenuList(self.setListOnView())
        self["devicelist"] = MenuList([])
        self.onLayoutFinish.append(self.layoutFinished)

        self.initConfig()
        self.taskManager = TaskManager()

        self.toggleGreenButtonTimer = eTimer()
        self.toggleGreenButtonTimer.timeout.get().append(
            self.cbToggleGreenButton)

        self.deviceListRefreshTimer = eTimer()
        self.deviceListRefreshTimer.timeout.get().append(
            self.cbDeviceListRefresh)
        global DLNA_CONFIG_DEVICE_REFRESH
        self.deviceListRefreshTimer.start(DLNA_CONFIG_DEVICE_REFRESH)
Ejemplo n.º 18
0
 def __init__(self, session):
     self.skin = PurePrestigecronsscreen.skin
     Screen.__init__(self, session)
     self['key_yellow'] = Button(_('Add'))
     self['key_green'] = Button(_('Run cron'))
     self['key_blue'] = Button(_('Stop cron'))
     self['croninfo'] = Label(_('info'))
     self['key_red'] = Button(_('Remove'))
     title = 'CronManager'
     self['infolabel'] = Label(title)
     now = datetime.datetime.now()
     ntime = now.strftime('%Y-%m-%d')
     self['info'] = Label(ntime)
     self['tdate'] = Label('minute/hr/date')
     self['tscript'] = Label('script name')
     self['list'] = MenuList([], True, eListboxPythonMultiContent)
     list = []
     self.list = list
     self['actions'] = ActionMap(
         ['ColorActions', 'SetupActions'], {
             'red': self.deletecrontab,
             'ok': self.close,
             'cancel': self.close,
             'yellow': self.addcron,
             'green': self.startcron,
             'blue': self.stopcron
         }, -2)
     self.cronfilepath = '/etc/cron/crontabs/root'
     self.mydatalist = []
     if not os.path.exists(self.cronfilepath):
         self.mydatalist = []
         return
     openfile = open(self.cronfilepath, 'r')
     self.mydatalist = openfile.readlines()
     openfile.close()
     self.onShow.append(self.ListToMulticontent)
     self.ListToMulticontent()
     self.getcroninfo()
Ejemplo n.º 19
0
    def __init__(self, session, parent, childNode, url):
        Screen.__init__(self, session)
        Screen.setTitle(self, _('EGAMI On Line Addons Installation'))
        menuList = []
        self.multi = False
        self.url = url
        try:
            header = parent.getAttribute('text').encode('UTF-8')
            menuType = parent.getAttribute('type').encode('UTF-8')
            if menuType == 'multi':
                self.multi = True
            else:
                self.multi = False
            menuList = self.buildMenuTree(childNode)
        except:
            tracefp = StringIO.StringIO()
            traceback.print_exc(file=tracefp)
            message = tracefp.getvalue()

        if self.multi:
            self['menu'] = EGListaAddonow(menuList)
        else:
            self['menu'] = MenuList(menuList)
        self['actions'] = ActionMap(
            ['ColorActions', 'OkCancelActions', 'MovieSelectionActions'], {
                'ok': self.nacisniecieOK,
                'red': self.nacisniecieOK,
                'cancel': self.closeNonRecursive,
                'exit': self.closeRecursive,
                'green': self.showAddonInfo
            })
        self['status'] = Label(_('Please, choose addon to install:'))
        self['key_red'] = Label(_('Download'))
        self['key_green'] = Label(_('Preview'))
        self.state = self.STATE_IDLE
        self.StateTimer = eTimer()
        self.StateTimer.stop()
        self.StateTimer.timeout.get().append(self.uruchomInstalator)
Ejemplo n.º 20
0
	def __init__(self, session, online, list=None, multi=None, devrootfs=None, mtdkernel=None, mtdrootfs=None ):
		Screen.__init__(self, session)
		self.session = session

		Screen.setTitle(self, _("Flash On the fly (select a image)"))
		self["key_green"] = StaticText(_("Flash"))
		self["key_red"] = StaticText(_("Exit"))
		self["key_blue"] = StaticText("")
		self["key_yellow"] = StaticText("")
		self.filename = None
		self.imagelist = []
		self.simulate = False
		self.Online = online
		self.List = list
		self.multi=multi
		self.devrootfs=devrootfs
		self.MTDKERNEL = mtdkernel
		self.MTDROOTFS = mtdrootfs
		self.imagePath = imagePath
		self.feedurl = feedurl_atv
		if image == 0:
			self.feed = "atv"
		else:
			self.feed = "om"
		self["imageList"] = MenuList(self.imagelist)
		self["actions"] = ActionMap(["OkCancelActions", "ColorActions"], 
		{
			"ok": self.green,
			"green": self.green,
			"yellow": self.yellow,
			"red": self.quit,
			"blue": self.blue,
			"cancel": self.quit,
		}, -2)
		self.onLayoutFinish.append(self.layoutFinished)
		self.newfeed = None
		if os.path.exists('/etc/enigma2/newfeed'):
			self.newfeed = ReadNewfeed()
Ejemplo n.º 21
0
    def setupSkin(self):
        InitSkin(self)

        self.chooseMenuList = MenuList([],
                                       enableWrapAround=True,
                                       content=eListboxPythonMultiContent)
        self.chooseMenuList.l.setFont(
            0,
            gFont('Regular',
                  20 + int(config.plugins.serienRec.listFontsize.value)))
        self.chooseMenuList.l.setItemHeight(int(50 * skinFactor))
        self['menu_list'] = self.chooseMenuList
        self['menu_list'].show()

        if config.plugins.serienRec.showCover.value:
            self['cover'].show()

        if not config.plugins.serienRec.showAllButtons.value:
            self['bt_red'].show()
            self['bt_green'].show()
            self['bt_ok'].show()
            self['bt_yellow'].show()
            self['bt_blue'].show()
            self['bt_exit'].show()
            self['bt_text'].show()
            self['bt_info'].show()
            self['bt_menu'].show()

            self['text_red'].show()
            self['text_green'].show()
            self['text_ok'].show()
            self['text_yellow'].show()
            self['text_blue'].show()
            self['text_0'].show()
            self['text_1'].show()
            self['text_2'].show()
            self['text_3'].show()
            self['text_4'].show()
Ejemplo n.º 22
0
    def __init__(self, session):
        self.session = session

        path = "%s/skins/%s/screen_skipwords.xml" % (
            getPluginPath(), config.plugins.skyrecorder.anytime_skin.value)
        with open(path, "r") as f:
            self.skin = f.read()
            f.close()

        Screen.__init__(self, session)

        pluginName = config.plugins.skyrecorder.pluginname.value
        contentSize = config.plugins.skyrecorder.contentsize.value

        self["actions"] = ActionMap(
            [
                "OkCancelActions", "ShortcutActions", "EPGSelectActions",
                "WizardActions", "ColorActions", "NumberActions",
                "MenuActions", "MoviePlayerActions"
            ], {
                "ok": self.keyOK,
                "cancel": self.keyCancel,
                "green": self.keyAdd,
                "red": self.keyDel,
            }, -1)

        self.skipwordliste = []
        self.streamMenuList = MenuList([],
                                       enableWrapAround=True,
                                       content=eListboxPythonMultiContent)
        self.streamMenuList.l.setFont(0, gFont('Regular', 30))
        self.streamMenuList.l.setItemHeight(75)
        self['skipwordselect'] = self.streamMenuList

        self.sky_skipwords_path = "/usr/lib/enigma2/python/Plugins/Extensions/skyrecorder/sky_skipwords"
        self.sky_skipwords_path_tmp = "/usr/lib/enigma2/python/Plugins/Extensions/skyrecorder/sky_skipwords.tmp"

        self.onLayoutFinish.append(self.readSkipWords)
Ejemplo n.º 23
0
	def __init__(self, session, args = None):

		Screen.__init__(self, session)

		self.setTitle(_("Select your Skin"))

		self.skinlist = []
		self.previewPath = ""
		if os.path.exists(os.path.join(self.root, SKINXML)):
			self.skinlist.append(DEFAULTSKIN)
		for root, dirs, files in os.walk(self.root, followlinks=True):
			for subdir in dirs:
				file = os.path.join(os.path.join(root, subdir), SKINXML)
				if os.path.exists(file) and (SystemInfo["HasFullHDSkinSupport"] or not all(x in open(file, "r").read() for x in ('yres="1080"', 'xres="1920"'))):
					self.skinlist.append(subdir)
			dirs = []

		self["key_red"] = StaticText(_("Close"))
		self["key_green"] = StaticText(_("Select"))
		self["introduction"] = StaticText(_("Press OK to activate the selected skin."))
		self.skinlist.sort()
		self["SkinList"] = MenuList(self.skinlist)
		self["Preview"] = Pixmap()

		self["actions"] = NumberActionMap(["WizardActions", "InputActions", "EPGSelectActions"],
		{
			"ok": self.ok,
			"back": self.close,
			"red": self.close,
			"green": self.ok,
			"up": self.up,
			"down": self.down,
			"left": self.left,
			"right": self.right,
			"info": self.info,
		}, -1)

		self.onLayoutFinish.append(self.layoutFinished)
Ejemplo n.º 24
0
    def __init__(self, session, device, partition):
        Screen.__init__(self, session)

        self.device = device
        self.partition = partition
        self.mountpoints = MountPoints()
        self.mountpoints.read()
        self.fast = False

        self.list = []
        self.list.append(_("Mount /universe"))
        self.list.append(_("Mount as /media/hdd"))
        self.list.append(_("Mount as /media/music"))
        self.list.append(_("Mount as /media/download"))
        self.list.append(_("Mount as /media/net"))
        self.list.append(_("Mount as /media/personal"))
        self.list.append(_("Mount as /media/usb"))
        self.list.append(_("Mount as /media/video"))
        self.list.append(_("Mount as /media/sda1"))
        self.list.append(_("Mount as /media/sdb1"))
        self.list.append(_("Mount as /media/meoboot"))
        self.list.append(_("Mount on custom path"))

        self["menu"] = MenuList(self.list)

        self["key_red"] = Button(_("Fixed mount"))
        self["key_green"] = Button(_("Fast mount"))
        self["key_blue"] = Button(_("Exit"))
        self["key_yellow"] = Button("")
        self["actions"] = ActionMap(
            ["OkCancelActions", "ColorActions"], {
                "blue": self.quit,
                "green": self.green,
                "red": self.ok,
                "cancel": self.quit,
            }, -2)

        self.onShown.append(self.setWindowTitle)
Ejemplo n.º 25
0
    def __init__(self, session):
        self.session = session
        if DESKHEIGHT < 1000:
            skin = '/usr/lib/enigma2/python/Plugins/Extensions/SatVenusPanel/Skin/radiofavHD.xml'
        else:
            skin = '/usr/lib/enigma2/python/Plugins/Extensions/SatVenusPanel/Skin/radiofavFHD.xml'
        f = open(skin, 'r')
        self.skin = f.read()
        f.close()
        Screen.__init__(self, session)
        self['key_red'] = Button(_('Exit'))
        self['key_yellow'] = Button(_('Delete'))
        self.CurrentService = self.session.nav.getCurrentlyPlayingServiceReference(
        )
        try:
            self.session.nav.stopService()
        except:
            pass

        self.onClose.append(self.__onClose)
        self['actions'] = ActionMap(
            ['SetupActions', 'ColorActions'], {
                'ok': self.ok,
                'green': self.ok,
                'yellow': self.Delselected,
                'red': self.close,
                'cancel': self.close
            }, -2)
        self.list = MenuList([])
        self['ButtonGreen'] = Pixmap()
        self['ButtonGreentext'] = Label(_('Play'))
        self['ButtonYellow'] = Pixmap()
        self['ButtonYellowtext'] = Label(_('Delete'))
        self['ButtonRed'] = Pixmap()
        self['ButtonRedtext'] = Label(_('Exit'))
        self['stationmenu'] = self.list
        lst = lsSelected()
        self.list.setList(lst)
Ejemplo n.º 26
0
    def __init__(self, session, args=None):

        self.session = session
        self.Console = Console()
        self.Version = args
        Screen.__init__(self, session)
        self.m3uliststart()
        self.iptvlist = self.m3ulist
        self.iptvname = ""
        self.IPTVInstalled = False
        self.countryPath = ""
        self.actual = None
        self.type = None
        self.iptvlist.sort()
        self["IPTVList"] = MenuList(self.iptvlist)
        self["country"] = Pixmap()
        self["text1"] = Label(
            _("Select M3U File from /etc/enigma2 to add into TV Bouquet"))

        self["actions"] = ActionMap(
            [
                "OkCancelActions", "WizardActions", "ColorActions",
                "SetupActions", "NumberActions", "EPGSelectActions"
            ], {
                "ok": self.ok,
                "back": self.cancel,
                "red": self.cancel,
                "green": self.ok,
                "up": self.up,
                "down": self.down,
                "left": self.left,
                "right": self.right,
                "yellow": self.install,
            }, -1)
        self["key_red"] = Label(_("Close"))
        self["key_green"] = Label(_("Install"))
        self["key_yellow"] = Label(_("Install all"))
        self.onLayoutFinish.append(self.layoutFinished)
Ejemplo n.º 27
0
Archivo: plugin.py Proyecto: trunca/123
 def __init__(self, session, args=0):
     self.skin = Cronmanager.skin
     self.session = session
     Screen.__init__(self, session)
     self.menu = args
     list = []
     list.append((_("list crontab"), "list"))
     list.append((_("add command to crontab with time"), "addwizzard"))
     list.append((_("add command to crontab with delay"), "laterwizzard"))
     list.append((_("delete crontab"), "delete"))
     list.append((_("reload crontab"), "reload"))
     list.append((_("info if cron daemon is running"), "info"))
     list.append((_("show system time"), "time"))
     list.append((_("change system time"), "changetime"))
     list.append((_("restart options"), "restartwizzard"))
     list.append((_("help"), "help"))
     list.append((_("readme.txt"), "readme"))
     list.append((_("about"), "about"))
     self["menu"] = MenuList(list)
     self["actions"] = ActionMap(["WizardActions", "DirectionActions"], {
         "ok": self.go,
         "back": self.close,
     }, -1)
Ejemplo n.º 28
0
    def __init__(self, session):
        Screen.__init__(self, session)
        self.session = session
        self['ListSetting'] = MenuList([])
        self.skinName = "PU_Restore"
        self.setup_title = _("Programmlisten Restore")
        self.setTitle(self.setup_title)

        self["key_red"] = StaticText(_("Exit"))
        self["key_green"] = StaticText(_("Restore"))
        self["key_yellow"] = StaticText(_("Delete"))

        self["ColorActions"] = ActionMap(
            ['OkCancelActions', 'ShortcutActions', "ColorActions"], {
                "red": self.keyCancel,
                "green": self.keyGreen,
                "yellow": self.keyYellow,
                "cancel": self.keyCancel,
                "ok": self.keyOk,
            })

        self.List = self.Search_Settings()
        self.SettingsMenu()
Ejemplo n.º 29
0
    def __init__(self, session, args=0):
        self.feed = args
        self.skin = """
				<screen position="80,80" size="e-160,e-160" title="%s" >
					<widget name="menu" position="10,10" size="e-20,e-20" scrollbarMode="showOnDemand" />
				</screen>""" % (self.feed.getName())
        self.session = session
        Screen.__init__(self, session)

        list = []
        self.itemlist = []
        itemnr = 0
        for item in self.getFeedContent(self.feed):
            list.append((item["title"], itemnr))
            self.itemlist.append(item)
            itemnr = itemnr + 1
        self.menu = args

        self["menu"] = MenuList(list)
        self["actions"] = ActionMap(["WizardActions", "DirectionActions"], {
            "ok": self.go,
            "back": self.close,
        }, -1)
Ejemplo n.º 30
0
	def __init__(self, session):
		Screen.__init__(self, session)
		self.session = session
		self.setTitle(_("Transmission menu"))
		list = []
		list.append((_("Information transmission download"), "info"))
		list.append((_("Start transmission"), "start"))
		list.append((_("Stop transmission"), "stop"))
		list.append((_("Restart transmission"), "restart"))
		list.append((_("Enable transmission autostart"), "enable"))
		list.append((_("Disable transmission autostart"), "disable"))
		list.append((_("Pause all downloads"), "pause"))
		list.append((_("Unpause all downloads"), "unpause"))
		list.append((_("Enable auto queue downloads"), "on"))
		list.append((_("Disable auto queue downloads"), "off"))
		list.append((_("Enabled SWAP when start transmission"), "enabled"))
		list.append((_("Create SWAP '/media/hdd/swapfile'"), "create"))
		list.append((_("Not enabled SWAP when start transmission"), "disabled"))
		list.append((_("Stop transmission after downloads (only queue works)"), "stop_trans"))
		list.append((_("Don't stop transmission after downloads (only queue works)"), "dont_stop_trans"))
		list.append((_("About transmission version"), "about_transmission"))
		self["menu"] = MenuList(list)
		self["actions"] = ActionMap(["OkCancelActions"], {"ok": self.run, "cancel": self.close}, -1)