本文整理汇总了Python中Screens.ScanSetup.ScanSetup.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python ScanSetup.__init__方法的具体用法?Python ScanSetup.__init__怎么用?Python ScanSetup.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Screens.ScanSetup.ScanSetup
的用法示例。
在下文中一共展示了ScanSetup.__init__方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from Screens.ScanSetup import ScanSetup [as 别名]
# 或者: from Screens.ScanSetup.ScanSetup import __init__ [as 别名]
def __init__(self, session):
self.initcomplete = False
service = session and session.nav.getCurrentService()
feinfo = service and service.frontendInfo()
self.frontendData = feinfo and feinfo.getAll(True)
del feinfo
del service
self.typeOfTuningEntry = None
self.systemEntry = None
self.satfinderTunerEntry = None
self.satEntry = None
self.typeOfInputEntry = None
ScanSetup.__init__(self, session)
self.setTitle(_("Satfinder"))
self["introduction"].setText(_("Press OK to scan"))
self["Frontend"] = FrontendStatus(frontend_source = lambda : self.frontend, update_interval = 100)
self["actions"] = ActionMap(["SetupActions", "ColorActions"],
{
"save": self.keyGoScan,
"ok": self.keyGoScan,
"cancel": self.keyCancel,
}, -3)
self.initcomplete = True
self.session.postScanService = self.session.nav.getCurrentlyPlayingServiceOrGroup()
self.onClose.append(self.__onClose)
self.onShow.append(self.prepareFrontend)
示例2: __init__
# 需要导入模块: from Screens.ScanSetup import ScanSetup [as 别名]
# 或者: from Screens.ScanSetup.ScanSetup import __init__ [as 别名]
def __init__(self, session, feid):
self.initcomplete = False
self.feid = feid
self.oldref = None
self.frontendData = None
service = session and session.nav.getCurrentService()
feinfo = service and service.frontendInfo()
self.frontendData = feinfo and feinfo.getAll(True)
del feinfo
del service
ScanSetup.__init__(self, session)
self.setTitle(_("Satfinder"))
self["introduction"].setText(_("Press OK to scan"))
self["Frontend"] = FrontendStatus(frontend_source = lambda : self.frontend, update_interval = 100)
self["actions"] = ActionMap(["SetupActions"],
{
"save": self.keyGoScan,
"ok": self.keyGoScan,
"cancel": self.keyCancel,
}, -3)
self.initcomplete = True
self.oldref = self.session.nav.getCurrentlyPlayingServiceReference()
self.onClose.append(self.__onClose)
self.onShow.append(self.__onShow)
示例3: __init__
# 需要导入模块: from Screens.ScanSetup import ScanSetup [as 别名]
# 或者: from Screens.ScanSetup.ScanSetup import __init__ [as 别名]
def __init__(self, session, feid):
self.initcomplete = False
self.feid = feid
self.oldref = None
self.frontendData = None
service = session and session.nav.getCurrentService()
feinfo = service and service.frontendInfo()
self.frontendData = feinfo and feinfo.getAll(True)
del feinfo
del service
if not self.openFrontend():
self.oldref = session.nav.getCurrentlyPlayingServiceReference()
session.nav.stopService() # try to disable foreground service
if not self.openFrontend():
if session.pipshown: # try to disable pip
session.pipshown = False
del session.pip
if not self.openFrontend():
self.frontend = None # in normal case this should not happen
ScanSetup.__init__(self, session)
Screen.setTitle(self, _("Satfinder"))
self.tuner = Tuner(self.frontend)
self["introduction"].setText("")
self["Frontend"] = FrontendStatus(frontend_source = lambda : self.frontend, update_interval = 100)
self.initcomplete = True
self.onClose.append(self.__onClose)
示例4: __init__
# 需要导入模块: from Screens.ScanSetup import ScanSetup [as 别名]
# 或者: from Screens.ScanSetup.ScanSetup import __init__ [as 别名]
def __init__(self, session, args = None):
ScanSetup.__init__(self, session)
# backup lamedb
confdir = resolveFilename(SCOPE_CONFIG)
copyfile(confdir + "/lamedb", confdir + "/lamedb.backup")
self.scan_type.value = "multisat"
self.createSetup()
self.scanIndex = 0
self.selectSat(0)
self.onFirstExecBegin.append(self.runScan)
示例5: __init__
# 需要导入模块: from Screens.ScanSetup import ScanSetup [as 别名]
# 或者: from Screens.ScanSetup.ScanSetup import __init__ [as 别名]
def __init__(self, session):
self.initcomplete = False
service = session and session.nav.getCurrentService()
feinfo = service and service.frontendInfo()
self.frontendData = feinfo and feinfo.getAll(True)
del feinfo
del service
self.preDefTransponders = None
# self.TerrestrialTransponders = None
self.CableTransponders = None
self.typeOfTuningEntry = None
# self.systemEntry = None
# self.tunerEntry = None
self.satEntry = None
# self.typeOfInputEntry = None
self.frequencyEntry = None
self.polarizationEntry = None
self.symbolrateEntry = None
self.inversionEntry = None
self.rolloffEntry = None
self.pilotEntry = None
# self.modulationEntry = None
self.fecEntry = None
self.transponder = None
# self.multiType = None
ScanSetup.__init__(self, session)
self.setTitle(_("Signal Finder"))
self["introduction"].setText(_("Press OK to scan"))
self["Frontend"] = FrontendStatus(frontend_source = lambda : self.frontend, update_interval = 100)
self["actions"] = ActionMap(["SetupActions", "ColorActions"],
{
"save": self.keyGoScan,
"ok": self.keyGoScan,
"cancel": self.keyCancel,
}, -3)
self.initcomplete = True
self.session.postScanService = self.session.nav.getCurrentlyPlayingServiceOrGroup()
self.onClose.append(self.__onClose)
self.onShow.append(self.prepareFrontend)
示例6: __init__
# 需要导入模块: from Screens.ScanSetup import ScanSetup [as 别名]
# 或者: from Screens.ScanSetup.ScanSetup import __init__ [as 别名]
def __init__(self, session):
self.initcomplete = False
self.frontendData = None
service = session and session.nav.getCurrentService()
feinfo = service and service.frontendInfo()
self.frontendData = feinfo and feinfo.getAll(True)
del feinfo
del service
ScanSetup.__init__(self, session)
self.setTitle(_('Satfinder'))
self['introduction'].setText(_('Press OK to scan'))
self['Frontend'] = FrontendStatus(frontend_source=lambda : self.frontend, update_interval=100)
self['actions'] = ActionMap(['SetupActions'], {'save': self.keyGoScan,
'ok': self.keyGoScan,
'cancel': self.keyCancel}, -3)
self.initcomplete = True
self.session.postScanService = self.session.nav.getCurrentlyPlayingServiceOrGroup()
self.onClose.append(self.__onClose)
self.onShow.append(self.prepareFrontend)
示例7: __init__
# 需要导入模块: from Screens.ScanSetup import ScanSetup [as 别名]
# 或者: from Screens.ScanSetup.ScanSetup import __init__ [as 别名]
def __init__(self, session, feid):
self.initcomplete = False
self.feid = feid
self.oldref = None
if not self.openFrontend():
self.oldref = session.nav.getCurrentlyPlayingServiceReference()
session.nav.stopService() # try to disable foreground service
if not self.openFrontend():
if session.pipshown: # try to disable pip
session.pipshown = False
session.deleteDialog(session.pip)
del session.pip
if not self.openFrontend():
self.frontend = None # in normal case this should not happen
ScanSetup.__init__(self, session, 'S')
self.tuner = Tuner(self.frontend)
self["introduction"].setText("")
self["Frontend"] = FrontendStatus(frontend_source = lambda : self.frontend, update_interval = 100)
self.initcomplete = True
self.onClose.append(self.__onClose)
示例8: __init__
# 需要导入模块: from Screens.ScanSetup import ScanSetup [as 别名]
# 或者: from Screens.ScanSetup.ScanSetup import __init__ [as 别名]
def __init__(self, session, feid, fe_data):
self.feid = feid
self.fe_data = fe_data
ScanSetup.__init__(self, session)
self["introduction"].setText("")