当前位置: 首页>>代码示例>>Python>>正文


Python ScanSetup.__init__方法代码示例

本文整理汇总了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)
开发者ID:gasan36,项目名称:enigma2-openpli-fulan,代码行数:32,代码来源:plugin.py

示例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)
开发者ID:drgogeta86,项目名称:enigma2,代码行数:30,代码来源:plugin.py

示例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)
开发者ID:kolombek,项目名称:enigma2,代码行数:30,代码来源:plugin.py

示例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)
开发者ID:fairbird,项目名称:OpenPLI-BlackHole,代码行数:12,代码来源:plugin.py

示例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)
开发者ID:idrogeno,项目名称:FusionOE,代码行数:46,代码来源:plugin.py

示例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)
开发者ID:kingvuplus,项目名称:ZDE-gui,代码行数:21,代码来源:plugin.py

示例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)
开发者ID:OpenDMM,项目名称:enigma2,代码行数:24,代码来源:plugin.py

示例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("")
开发者ID:popazerty,项目名称:12,代码行数:7,代码来源:plugin.py


注:本文中的Screens.ScanSetup.ScanSetup.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。