fix hdd initialize button
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Tue, 3 Jan 2006 11:36:12 +0000 (11:36 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Tue, 3 Jan 2006 11:36:12 +0000 (11:36 +0000)
change "Abbrechen" to "Abbruch" to fit onto the pixmap
fix videomode after standby

data/skin.xml
lib/python/Screens/Standby.py
po/de.po

index 385b4be..6ffd678 100644 (file)
@@ -62,7 +62,7 @@
                        <widget name="model" position="20,10" size="380,25" font="Regular;23"  />
                        <widget name="capacity" position="20,40" size="380,25" font="Regular;23"  />
                        <widget name="bus" position="20,70" size="380,25" font="Regular;23"  />
                        <widget name="model" position="20,10" size="380,25" font="Regular;23"  />
                        <widget name="capacity" position="20,40" size="380,25" font="Regular;23"  />
                        <widget name="bus" position="20,70" size="380,25" font="Regular;23"  />
-                       <widget name="initialize" position="40,110" size="120,30" zPosition="1" pixmap="/usr/share/enigma2/init.png" />
+                       <widget name="initialize" position="40,110" size="120,30" zPosition="1" pixmap="/usr/share/enigma2/init.png" transparent="1" />
                        <widget name="initializetext" position="40,110" size="120,30" valign="center" halign="center" zPosition="2" font="Regular;20" />
                </screen>
                <screen name="Setup" position="100,125" size="540,280" title="Setup">
                        <widget name="initializetext" position="40,110" size="120,30" valign="center" halign="center" zPosition="2" font="Regular;20" />
                </screen>
                <screen name="Setup" position="100,125" size="540,280" title="Setup">
index 09a87ce..217f334 100644 (file)
@@ -1,13 +1,14 @@
 from Screen import Screen
 from Components.ActionMap import ActionMap
 from Components.config import config
 from Screen import Screen
 from Components.ActionMap import ActionMap
 from Components.config import config
+from Components.AVSwitch import AVSwitch
 from enigma import *
 
 class Standby(Screen):
        def Power(self):
                print "leave standby"
                #set input to encoder
 from enigma import *
 
 class Standby(Screen):
        def Power(self):
                print "leave standby"
                #set input to encoder
-               eAVSwitch.getInstance().setInput(0)
+               self.avswitch.setInput("ENCODER")
                #start last played service
                #self.infobar.servicelist.zap()
                self.session.nav.playService(eServiceReference(config.tv.lastservice.value))
                #start last played service
                #self.infobar.servicelist.zap()
                self.session.nav.playService(eServiceReference(config.tv.lastservice.value))
@@ -34,6 +35,7 @@ class Standby(Screen):
        def __init__(self, session, infobar):
                Screen.__init__(self, session)
                self.infobar = infobar
        def __init__(self, session, infobar):
                Screen.__init__(self, session)
                self.infobar = infobar
+               self. avswitch = AVSwitch()
                print "enter standby"
 
                self["actions"] = ActionMap( [ "StandbyActions" ],
                print "enter standby"
 
                self["actions"] = ActionMap( [ "StandbyActions" ],
@@ -46,7 +48,7 @@ class Standby(Screen):
                #stop actual played dvb-service
                self.session.nav.stopService()
                #set input to vcr scart
                #stop actual played dvb-service
                self.session.nav.stopService()
                #set input to vcr scart
-               eAVSwitch.getInstance().setInput(1)
+               self.avswitch.setInput("SCART")
                #set lcd brightness to standby value
                eDBoxLCD.getInstance().setLCDBrightness(config.lcd.standby.value * 20)
                #clear lcd (servicename)
                #set lcd brightness to standby value
                eDBoxLCD.getInstance().setLCDBrightness(config.lcd.standby.value * 20)
                #clear lcd (servicename)
index 590f27f..97d1851 100644 (file)
--- a/po/de.po
+++ b/po/de.po
@@ -157,7 +157,7 @@ msgstr "Kabelanbieter"
 
 #: ../lib/python/Screens/Setup.py:110 ../lib/python/Screens/TimerEntry.py:19
 msgid "Cancel"
 
 #: ../lib/python/Screens/Setup.py:110 ../lib/python/Screens/TimerEntry.py:19
 msgid "Cancel"
-msgstr "Abbrechen"
+msgstr "Abbruch"
 
 #: ../lib/python/Screens/HarddiskSetup.py:30
 msgid "Capacity: "
 
 #: ../lib/python/Screens/HarddiskSetup.py:30
 msgid "Capacity: "