from skin import readSkin, applyAllAttributes
-from Components.config import configfile
-from Tools.Directories import InitFallbackFiles, resolveFilename, SCOPE_PLUGINS
+from Tools.Directories import InitFallbackFiles, resolveFilename, SCOPE_PLUGINS, SCOPE_SKIN_IMAGE
+from Components.config import config, ConfigText, configfile, ConfigSubsection, ConfigInteger
InitFallbackFiles()
eDVBDB.getInstance().reloadBouquets()
+config.misc.radiopic = ConfigText(default = resolveFilename(SCOPE_SKIN_IMAGE)+"radio.mvi")
+
try:
import e2reactor
e2reactor.install()
def instantiateDialog(self, screen, *arguments, **kwargs):
return self.doInstantiateDialog(screen, arguments, kwargs, self.desktop)
+ def deleteDialog(self, screen):
+ screen.hide()
+ screen.doClose()
+
def instantiateSummaryDialog(self, screen, *arguments, **kwargs):
return self.doInstantiateDialog(screen, arguments, kwargs, self.summary_desktop)
self.execBegin()
return dlg
- def keyEvent(self, code):
- print "code " + str(code)
-
def close(self, screen, *retval):
if not self.in_exec:
print "close after exec!"
from Screens.Volume import Volume
from Screens.Mute import Mute
from GlobalActions import globalActionMap
-from Components.config import ConfigSubsection, configSequence, configElement, configsequencearg
#TODO .. move this to a own .py file
class VolumeControl:
globalActionMap.actions["volumeMute"]=self.volMute
config.audio = ConfigSubsection()
- config.audio.volume = configElement("config.audio.volume", configSequence, [100], configsequencearg.get("INTEGER", (0, 100)))
+ config.audio.volume = ConfigInteger(default = 100, limits = (0, 100))
self.volumeDialog = session.instantiateDialog(Volume)
self.muteDialog = session.instantiateDialog(Mute)
self.hideVolTimer = eTimer()
self.hideVolTimer.timeout.get().append(self.volHide)
- vol = config.audio.volume.value[0]
+ vol = config.audio.volume.value
+ print "volume is", vol
self.volumeDialog.setValue(vol)
eDVBVolumecontrol.getInstance().setVolume(vol, vol)
self.standby()
def standby(self):
- self.session.open(Standby, self)
+ if self.session.current_dialog and self.session.current_dialog.ALLOW_SUSPEND:
+ self.session.open(Standby, self)
def quit(self):
# halt
runNextScreen(session, screensToRun)
- CONNECT(keyPressedSignal(), session.keyEvent)
-
vol = VolumeControl(session)
power = PowerKey(session)
else:
setFPWakeuptime(nextRecordingTime - (300))
+ session.nav.stopService()
session.nav.shutdown()
return 0
import Components.NimManager
+import Screens.Ci
+Screens.Ci.InitCiConfig()
+
# first, setup a screen
try:
runScreenTest()