Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/e/n/enigma2-plugins-HEAD/automaticvolumeadjustment/src/AutomaticVolumeAdjustment.py   enigma2-plugins(Download)
from ServiceReference import ServiceReference
from Components.VolumeControl import VolumeControl
from AutomaticVolumeAdjustmentConfig import AutomaticVolumeAdjustmentConfig, getVolumeDict
 
class AutomaticVolumeAdjustment(Screen):
		self.enabled = False # AutomaticVolumeAdjustment enabled in setup?
		self.serviceList = { } # values from config
		configVA = AutomaticVolumeAdjustmentConfig() # get config values
		assert not AutomaticVolumeAdjustment.instance, "only one AutomaticVolumeAdjustment instance is allowed!"
		AutomaticVolumeAdjustment.instance = self # set instance

src/e/n/enigma2-plugins-HEAD/automaticvolumeadjustment/src/AutomaticVolumeAdjustmentSetup.py   enigma2-plugins(Download)
from ServiceReference import ServiceReference
from AutomaticVolumeAdjustment import AutomaticVolumeAdjustment
from AutomaticVolumeAdjustmentConfig import AutomaticVolumeAdjustmentConfig
 
 
		self["key_green"] = StaticText(_("OK"))
		self["key_blue"] = StaticText()
		self.configVA = AutomaticVolumeAdjustmentConfig()
		self.automaticVolumeAdjustmentInstance = AutomaticVolumeAdjustment.instance
		self.list = []