本文整理汇总了Python中Screens.ParentalControlSetup.ProtectedScreen.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python ProtectedScreen.__init__方法的具体用法?Python ProtectedScreen.__init__怎么用?Python ProtectedScreen.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Screens.ParentalControlSetup.ProtectedScreen
的用法示例。
在下文中一共展示了ProtectedScreen.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from Screens.ParentalControlSetup import ProtectedScreen [as 别名]
# 或者: from Screens.ParentalControlSetup.ProtectedScreen import __init__ [as 别名]
def __init__(self, session, servicelist):
Screen.__init__(self, session)
ProtectedScreen.__init__(self)
self.session = session
self.real = []
self.servicelist = servicelist
self.serviceHandler = eServiceCenter.getInstance()
self.allowChanges = True
self['list'] = HistoryZapBrowserList([])
self['key_green'] = Label(_('Zap'))
self['key_menu'] = Label(_('Options') + '...')
self['actions'] = ActionMap(['OkCancelActions',
'ColorActions',
'MenuActions',
'DirectionActions'], {'cancel': self.cancel,
'menu': self.menu,
'left': self.klef,
'right': self.krig,
'up': self.kup,
'down': self.kdow,
'ok': self.zapAndClose,
'blue': self.config,
'green': self.zap,
'yellow': self.delete,
'red': self.clear}, prio=-1)
if config.plugins.spzHistoryZapConf.viewMode.value == 'picons':
self['list'].l.setItemHeight(70)
elif config.plugins.spzHistoryZapConf.viewMode.value == 'menu':
self['list'].l.setItemHeight(40)
else:
self['list'].l.setItemHeight(22)
self.onLayoutFinish.append(self.cargadapantalla)
self.timerAutoZap = eTimer()
self.timerAutoZap.callback.append(self.zap)
示例2: __init__
# 需要导入模块: from Screens.ParentalControlSetup import ProtectedScreen [as 别名]
# 或者: from Screens.ParentalControlSetup.ProtectedScreen import __init__ [as 别名]
def __init__(self, session, servicelist):
Screen.__init__(self, session)
ProtectedScreen.__init__(self)
self.session = session
self.servicelist = servicelist
self.serviceHandler = eServiceCenter.getInstance()
self.allowChanges = True
self.zapDown = False
self.time = 3
self['list'] = vZapHistoryBrowserList([])
self['key_green'] = Label(_('Zap'))
self['key_red'] = Label(_('Clear'))
self['key_yellow'] = Label(_('Delete'))
self['key_menu'] = Label(_('Settings'))
self['actions'] = ActionMap(['OkCancelActions', 'ColorActions', 'DirectionActions'],
{'cancel': self.cancel,
'left': self.keyLeft,
'right': self.keyRight,
'up': self.keyUp,
'down': self.keyDown,
'ok': self.zapAndClose,
'blue': self.config,
'green': self.zap,
'yellow': self.delete,
'red': self.clear}, -1)
self.onLayoutFinish.append(self.buildList)
self.timerAutoZap = eTimer()
self.timerAutoZap.callback.append(self.zap)
示例3: __init__
# 需要导入模块: from Screens.ParentalControlSetup import ProtectedScreen [as 别名]
# 或者: from Screens.ParentalControlSetup.ProtectedScreen import __init__ [as 别名]
def __init__(self, session):
Screen.__init__(self, session)
if config.ParentalControl.configured.value:
ProtectedScreen.__init__(self)
Screen.setTitle(self, _('Plugin Browser'))
ProtectedScreen.__init__(self)
self.firsttime = True
self['key_red'] = Label(_('Remove plugins'))
self['key_green'] = Label(_('Download plugins'))
self['key_blue'] = self['blue'] = Label(_('Hold plugins'))
self.list = []
self['list'] = PluginList(self.list)
if config.usage.sort_pluginlist.value:
self['list'].list.sort()
self['actions'] = ActionMap(['SetupActions', 'WizardActions'], {'ok': self.save,
'back': self.close,
'menu': self.menu})
self['PluginDownloadActions'] = ActionMap(['ColorActions'], {'red': self.delete,
'green': self.download,
'blue': self.toogle})
self['DirectionActions'] = ActionMap(['DirectionActions'], {'moveUp': self.moveUp,
'moveDown': self.moveDown})
self.onFirstExecBegin.append(self.checkWarnings)
self.onShown.append(self.updateList)
self.onChangedEntry = []
self['list'].onSelectionChanged.append(self.selectionChanged)
self.onLayoutFinish.append(self.saveListsize)
if config.pluginfilter.userfeed.value != 'http://':
if not os.path.exists('/etc/opkg/user-feed.conf'):
CreateFeedConfig()
示例4: __init__
# 需要导入模块: from Screens.ParentalControlSetup import ProtectedScreen [as 别名]
# 或者: from Screens.ParentalControlSetup.ProtectedScreen import __init__ [as 别名]
def __init__(self, session):
MessageBox.__init__(self, session, _("When you do a factory reset, you will lose ALL your configuration data\n"
"(including bouquets, services, satellite data ...)\n"
"After completion of factory reset, your receiver will restart automatically!\n\n"
"Really do a factory reset?"), MessageBox.TYPE_YESNO, default=False)
self.skinName = "MessageBox"
ProtectedScreen.__init__(self)
示例5: __init__
# 需要导入模块: from Screens.ParentalControlSetup import ProtectedScreen [as 别名]
# 或者: from Screens.ParentalControlSetup.ProtectedScreen import __init__ [as 别名]
def __init__(self, session, services = None):
Screen.__init__(self, session)
config.plugins.configurationbackup=BackupRestore_InitConfig()
if config.ParentalControl.configured.value:
ProtectedScreen.__init__(self)
self.session = session
self.skin = MENU_SKIN
self.onShown.append(self.setWindowTitle)
ProtectedScreen.__init__(self)
self.service = None
global pluginlist
global videomode
global infook
global INFOCONF
global menu
INFOCONF = 0
pluginlist="False"
try:
print '[INFO-Panel] SHOW'
global inINFOPanel
inINFOPanel = self
except:
print '[INFO-Panel] Error Hide'
# global servicelist
if services is not None:
self.servicelist = services
else:
self.servicelist = None
self.list = []
#// get the remote buttons
self["actions"] = ActionMap(["OkCancelActions", "DirectionActions", "ColorActions"],
{
"cancel": self.Exit,
"upUp": self.up,
"downUp": self.down,
"ok": self.ok,
}, 1)
self["label1"] = Label(INFO_Panel_Version)
self["summary_description"] = StaticText("")
self.Mlist = []
if Check_SysSoftcam() is "oscam":
self.Mlist.append(MenuEntryItem((InfoEntryComponent('OScamInfo'), _("OScamInfo"), 'OScamInfo')))
if Check_Softcam():
self.Mlist.append(MenuEntryItem((InfoEntryComponent('SoftcamPanel'), _("SoftcamPanel"), 'SoftcamPanel')))
self.Mlist.append(MenuEntryItem((InfoEntryComponent('SoftcamPanelSetup'), _("Softcam-Panel Setup"), 'Softcam-Panel Setup')))
#self.Mlist.append(MenuEntryItem((InfoEntryComponent ("SoftwareManager" ), _("Software update"), ("software-update"))))
self.Mlist.append(MenuEntryItem((InfoEntryComponent ("SoftwareManager" ), _("Software Manager"), ("software-manager"))))
self.Mlist.append(MenuEntryItem((InfoEntryComponent('KeymapSel'), _("Keymap Selection"), 'KeymapSel')))
self.Mlist.append(MenuEntryItem((InfoEntryComponent('Plugins'), _("Plugins"), 'Plugins')))
self.Mlist.append(MenuEntryItem((InfoEntryComponent('Infos'), _("Infos"), 'Infos')))
self.onChangedEntry = []
if (getDesktop(0).size().width() == 1280):
self["Mlist"] = PanelList([])
else:
self["Mlist"] = PanelList([], font0=24, font1=15, itemHeight=50)
self["Mlist"].l.setList(self.Mlist)
menu = 0
self["Mlist"].onSelectionChanged.append(self.selectionChanged)
示例6: __init__
# 需要导入模块: from Screens.ParentalControlSetup import ProtectedScreen [as 别名]
# 或者: from Screens.ParentalControlSetup.ProtectedScreen import __init__ [as 别名]
def __init__(self, session):
Screen.__init__(self, session)
ProtectedScreen.__init__(self)
self.session = session
self.sortType = self.SORT_DATE_ASCENDING
self["key_red"] = Label(_("Delete"))
self["key_green"] = Label(" ")
self["key_yellow"] = Label(" ")
self["key_blue"] = Label(_("Durations"))
self["list"] = ZapStatisticBrowserList([])
self["actions"] = ActionMap(["ColorActions", "OkCancelActions", "InfobarMenuActions"],
{
"ok": self.play,
"cancel": self.close,
"red": self.delete,
"green": self.sortByName,
"yellow": self.sortByDate,
"blue": self.duration,
"mainMenu": self.menu
}, prio=-1)
self.onLayoutFinish.append(self.buildList)
示例7: __init__
# 需要导入模块: from Screens.ParentalControlSetup import ProtectedScreen [as 别名]
# 或者: from Screens.ParentalControlSetup.ProtectedScreen import __init__ [as 别名]
def __init__(self, session):
Screen.__init__(self, session)
ProtectedScreen.__init__(self)
self.firsttime = True
self["key_red"] = self["red"] = Label(_("Remove plugins"))
self["key_green"] = self["green"] = Label(_("Download plugins"))
self.list = []
self["list"] = PluginList(self.list)
self["actions"] = ActionMap(["WizardActions","MenuActions"],
{
"ok": self.save,
"back": self.close,
"menu": self.exit,
})
self["PluginDownloadActions"] = ActionMap(["ColorActions"],
{
"red": self.delete,
"green": self.download
})
self["DirectionActions"] = ActionMap(["DirectionActions"],
{
"moveUp": self.moveUp,
"moveDown": self.moveDown
})
self.onFirstExecBegin.append(self.checkWarnings)
self.onShown.append(self.updateList)
self.onChangedEntry = []
self["list"].onSelectionChanged.append(self.selectionChanged)
self.onLayoutFinish.append(self.saveListsize)
示例8: __init__
# 需要导入模块: from Screens.ParentalControlSetup import ProtectedScreen [as 别名]
# 或者: from Screens.ParentalControlSetup.ProtectedScreen import __init__ [as 别名]
def __init__(self, session, servicelist):
Screen.__init__(self, session)
ProtectedScreen.__init__(self)
self.session = session
self.servicelist = servicelist
self.serviceHandler = eServiceCenter.getInstance()
self.allowChanges = True
self["list"] = ZapHistoryBrowserList([])
self["key_red"] = Label(_("Clear"))
self["key_green"] = Label(_("Delete"))
self["key_yellow"] = Label(_("Zap+Close"))
self["key_blue"] = Label(_("Config"))
self["actions"] = ActionMap(["OkCancelActions", "ColorActions"],
{
"ok": self.zap,
"cancel": self.close,
"red": self.clear,
"green": self.delete,
"yellow": self.zapAndClose,
"blue": self.config
}, prio=-1)
self.onLayoutFinish.append(self.buildList)
示例9: __init__
# 需要导入模块: from Screens.ParentalControlSetup import ProtectedScreen [as 别名]
# 或者: from Screens.ParentalControlSetup.ProtectedScreen import __init__ [as 别名]
def __init__(self, session, *args):
Screen.__init__(self, session)
ProtectedScreen.__init__(self)
Screen.setTitle(self, _('Software Update'))
self.sliderPackages = {'ini-dvb-modules': 1,
'enigma2': 2,
'tuxbox-image-info': 3}
self.slider = Slider(0, 4)
self['slider'] = self.slider
self.activityslider = Slider(0, 100)
self['activityslider'] = self.activityslider
self.status = StaticText(_('Please wait...'))
self['status'] = self.status
self.package = StaticText(_('Package list update'))
self['package'] = self.package
self.oktext = _('Press OK on your remote control to continue.')
self['tl_off'] = Pixmap()
self['tl_red'] = Pixmap()
self['tl_yellow'] = Pixmap()
self['tl_green'] = Pixmap()
self['feedStatusMSG'] = Label()
self.channellist_only = 0
self.channellist_name = ''
self.SettingsBackupDone = False
self.ImageBackupDone = False
self.autobackuprunning = False
self.packages = 0
self.error = 0
self.processed_packages = []
self.total_packages = None
self.onFirstExecBegin.append(self.checkNetworkState)
示例10: __init__
# 需要导入模块: from Screens.ParentalControlSetup import ProtectedScreen [as 别名]
# 或者: from Screens.ParentalControlSetup.ProtectedScreen import __init__ [as 别名]
def __init__(self, session):
Screen.__init__(self, session)
self.setTitle(_("Plugin browser"))
ProtectedScreen.__init__(self)
self.firsttime = True
self['key_red'] = self['red'] = Label(_('Download plugins'))
self.list = []
self['list'] = PluginList(self.list)
self['actions'] = ActionMap(['WizardActions', 'MenuActions'], {'ok': self.save,
'back': self.close,
'menu': self.exit})
self['PluginDownloadActions'] = ActionMap(['ColorActions'], {'red': self.download})
self['DirectionActions'] = ActionMap(['DirectionActions'], {'moveUp': self.moveUp,
'moveDown': self.moveDown})
self['NumberActions'] = NumberActionMap(['NumberActions'], {'1': self.keyNumberGlobal,
'2': self.keyNumberGlobal,
'3': self.keyNumberGlobal,
'4': self.keyNumberGlobal,
'5': self.keyNumberGlobal,
'6': self.keyNumberGlobal,
'7': self.keyNumberGlobal,
'8': self.keyNumberGlobal,
'9': self.keyNumberGlobal,
'0': self.keyNumberGlobal})
self.number = 0
self.nextNumberTimer = eTimer()
self.nextNumberTimer.callback.append(self.okbuttonClick)
self.onFirstExecBegin.append(self.checkWarnings)
self.onShown.append(self.updateList)
self.onChangedEntry = []
self['list'].onSelectionChanged.append(self.selectionChanged)
self.onLayoutFinish.append(self.saveListsize)
示例11: __init__
# 需要导入模块: from Screens.ParentalControlSetup import ProtectedScreen [as 别名]
# 或者: from Screens.ParentalControlSetup.ProtectedScreen import __init__ [as 别名]
def __init__(self, session):
Screen.__init__(self, session)
self.setTitle(_("Plugin browser"))
ProtectedScreen.__init__(self)
self.firsttime = True
self["key_red"] = self["red"] = Label(_("Remove plugins"))
self["key_green"] = self["green"] = Label(_("Download plugins"))
self.list = []
self["list"] = PluginList(self.list)
self["list"].list.sort()
self["actions"] = ActionMap(["SetupActions","WizardActions"],
{
"ok": self.save,
"back": self.close,
"menu": self.menu,
})
self["PluginDownloadActions"] = ActionMap(["ColorActions"],
{
"red": self.delete,
"green": self.download
})
self["DirectionActions"] = ActionMap(["DirectionActions"],
{
"moveUp": self.moveUp,
"moveDown": self.moveDown
})
self["NumberActions"] = NumberActionMap(["NumberActions"],
{
"1": self.keyNumberGlobal,
"2": self.keyNumberGlobal,
"3": self.keyNumberGlobal,
"4": self.keyNumberGlobal,
"5": self.keyNumberGlobal,
"6": self.keyNumberGlobal,
"7": self.keyNumberGlobal,
"8": self.keyNumberGlobal,
"9": self.keyNumberGlobal,
"0": self.keyNumberGlobal
})
self["HelpActions"] = ActionMap(["HelpActions"],
{
"displayHelp": self.showHelp,
})
self.help = False
self.number = 0
self.nextNumberTimer = eTimer()
self.nextNumberTimer.callback.append(self.okbuttonClick)
self.onFirstExecBegin.append(self.checkWarnings)
self.onShown.append(self.updateList)
self.onChangedEntry = []
self["list"].onSelectionChanged.append(self.selectionChanged)
self.onLayoutFinish.append(self.saveListsize)
if config.pluginfilter.userfeed.getValue() != "http://":
if not os.path.exists("/etc/opkg/user-feed.conf"):
CreateFeedConfig()
示例12: __init__
# 需要导入模块: from Screens.ParentalControlSetup import ProtectedScreen [as 别名]
# 或者: from Screens.ParentalControlSetup.ProtectedScreen import __init__ [as 别名]
def __init__(self, session):
MessageBox.__init__(self, session, _("Factory reset will restore your receiver to its default configuration. "
"All user data including system settings, tuner configuration, bouquets, services and plugins will be DELETED. "
"Recordings and other files stored on HDD and USB media will remain intact. "
"After completion, the system will restart automatically!\n\n"
"Do you really want to proceed?"), MessageBox.TYPE_YESNO, default=False)
self.skinName = "MessageBox"
ProtectedScreen.__init__(self)
示例13: __init__
# 需要导入模块: from Screens.ParentalControlSetup import ProtectedScreen [as 别名]
# 或者: from Screens.ParentalControlSetup.ProtectedScreen import __init__ [as 别名]
def __init__(self, session):
MessageBox.__init__(self, session, _("When you perform a factory reset, you will lose ALL of your configuration data\n"
"(including bouquets, services, satellite data ...)\n"
"After completion of the factory reset, your %s %s will restart automatically!\n\n"
"Do you really want to do a factory reset?") % (getMachineBrand(), getMachineName()), MessageBox.TYPE_YESNO, default = False)
self.setTitle(_("Factory reset"))
self.skinName = "MessageBox"
ProtectedScreen.__init__(self)
示例14: __init__
# 需要导入模块: from Screens.ParentalControlSetup import ProtectedScreen [as 别名]
# 或者: from Screens.ParentalControlSetup.ProtectedScreen import __init__ [as 别名]
def __init__(self, session):
Screen.__init__(self, session)
self.setTitle(_("Plugin browser"))
ProtectedScreen.__init__(self)
self.firsttime = True
self.list = []
self["list"] = PluginList(self.list)
self["actions"] = ActionMap(["WizardActions","MenuActions"],
{
"ok": self.save,
"back": self.close,
"menu": self.exit,
})
if fileExists(resolveFilename(SCOPE_PLUGINS, "Extensions/J00zekOPKGmgr/GOSopkg.pyo")):
self["key_red"] = self["red"] = Label(_("Manage extensions"))
self["key_green"] = self["green"] = Label("")
self["PluginDownloadActions"] = ActionMap(["ColorActions"],
{
"red": self.openGOSopkg
})
else:
self["key_red"] = self["red"] = Label(_("Remove plugins"))
self["key_green"] = self["green"] = Label(_("Download plugins"))
self["PluginDownloadActions"] = ActionMap(["ColorActions"],
{
"red": self.delete,
"green": self.download
})
self["DirectionActions"] = ActionMap(["DirectionActions"],
{
"moveUp2": self.moveUp,
"moveDown0": self.moveDown
})
self["NumberActions"] = NumberActionMap(["NumberActions"],
{
"1": self.keyNumberGlobal,
"2": self.keyNumberGlobal,
"3": self.keyNumberGlobal,
"4": self.keyNumberGlobal,
"5": self.keyNumberGlobal,
"6": self.keyNumberGlobal,
"7": self.keyNumberGlobal,
"8": self.keyNumberGlobal,
"9": self.keyNumberGlobal,
"0": self.keyNumberGlobal
})
self.onFirstExecBegin.append(self.checkWarnings)
self.onShown.append(self.updateList)
self.onChangedEntry = []
self["list"].onSelectionChanged.append(self.selectionChanged)
self.onLayoutFinish.append(self.saveListsize)
示例15: __init__
# 需要导入模块: from Screens.ParentalControlSetup import ProtectedScreen [as 别名]
# 或者: from Screens.ParentalControlSetup.ProtectedScreen import __init__ [as 别名]
def __init__(self, session):
Screen.__init__(self, session)
Screen.setTitle(self, _("Plugin Browser"))
ProtectedScreen.__init__(self)
self.firsttime = True
self["key_red"] = self["red"] = Label(_("Remove plugins"))
self["key_green"] = self["green"] = Label(_("Download plugins"))
self["key_blue"] = self["blue"] = Label(_("Hold plugins"))
self.list = []
self["list"] = PluginList(self.list)
if config.usage.sort_pluginlist.getValue():
self["list"].list.sort()
self["actions"] = ActionMap(["SetupActions","WizardActions","EPGSelectActions"],
{
"ok": self.save,
"back": self.close,
"menu": self.menu,
})
self["PluginDownloadActions"] = ActionMap(["ColorActions"],
{
"red": self.delete,
"green": self.download,
"blue": self.toogle
})
self["DirectionActions"] = ActionMap(["DirectionActions"],
{
"moveUp": self.moveUp,
"moveDown": self.moveDown
})
self["NumberActions"] = NumberActionMap(["NumberActions"],
{
"1": self.keyNumberGlobal,
"2": self.keyNumberGlobal,
"3": self.keyNumberGlobal,
"4": self.keyNumberGlobal,
"5": self.keyNumberGlobal,
"6": self.keyNumberGlobal,
"7": self.keyNumberGlobal,
"8": self.keyNumberGlobal,
"9": self.keyNumberGlobal,
"0": self.keyNumberGlobal
})
self.onFirstExecBegin.append(self.checkWarnings)
self.onShown.append(self.updateList)
self.onChangedEntry = []
self["list"].onSelectionChanged.append(self.selectionChanged)
self.onLayoutFinish.append(self.saveListsize)
if config.pluginfilter.userfeed.getValue() != "http://":
if not os.path.exists("/etc/opkg/user-feed.conf"):
CreateFeedConfig()