show servicename and clock in radio player
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 6 Jan 2006 18:32:06 +0000 (18:32 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 6 Jan 2006 18:32:06 +0000 (18:32 +0000)
data/skin.xml
lib/python/Screens/ChannelSelection.py

index aa8874e5faf916927c131bfc0ba9f29c548b311a..9a4eaa134bafe743d21cf09db8533d8156a51c7b 100644 (file)
                        <widget name="key_blue" position="420,0" size="140,40" backgroundColor="blue" font="Regular;21" />
                        <widget name="list" position="0,45" size="560,252" scrollbarMode="showOnDemand" />
                </screen>
-               <screen name="ServiceInfoWindow" position="90,420" size="560,65">
-                       <widget name="Event_Now_StartTime" position="0,0" size="60,22" font="Regular;20" backgroundColor="dark" />
-                       <widget name="Event_Next_StartTime" position="0,30" size="60,22" font="Regular;20" backgroundColor="dark" />
-                       <widget name="Event_Now" position="80,0" size="380,22" font="Regular;20" backgroundColor="dark" />
-                       <widget name="Event_Next" position="80,30" size="380,22" font="Regular;20" backgroundColor="dark" />
-                       <widget name="Event_Now_Duration" position="470,0" size="150,26" font="Regular;22" backgroundColor="dark" />
-                       <widget name="Event_Next_Duration" position="470,30" size="150,26" font="Regular;22" backgroundColor="dark" />
+               <screen name="ServiceInfoWindow" position="90,420" size="560,95">
+                       <widget name="Service_Name" position="0,0" size="400,26" font="Regular;22" backgroundColor="dark" />
+                       <widget name="Clock" position="470,0" size="90,26" font="Regular;22" backgroundColor="dark" />
+                       <widget name="Event_Now_StartTime" position="0,35" size="60,22" font="Regular;20" backgroundColor="dark" />
+                       <widget name="Event_Next_StartTime" position="0,65" size="60,22" font="Regular;20" backgroundColor="dark" />
+                       <widget name="Event_Now" position="80,35" size="380,22" font="Regular;20" backgroundColor="dark" />
+                       <widget name="Event_Next" position="80,65" size="380,22" font="Regular;20" backgroundColor="dark" />
+                       <widget name="Event_Now_Duration" position="470,35" size="150,22" font="Regular;20" backgroundColor="dark" />
+                       <widget name="Event_Next_Duration" position="470,65" size="150,22" font="Regular;20" backgroundColor="dark" />
                </screen>
                <screen name="SimpleChannelSelection" position="90,98" size="560,417" title="Channel Selection">
                        <widget name="list" position="00,45" size="560,364" scrollbarMode="showOnDemand" />
index e9eb8605a6e9404ed769c1fb4ca649be864227b7..d4a1e7cea08d9911cd5eece5d98f3b65efc7c0d2 100644 (file)
@@ -8,6 +8,8 @@ from Components.config import config, configElement, ConfigSubsection, configTex
 from Screens.FixedMenu import FixedMenu
 from Tools.NumericalTextInput import NumericalTextInput
 from Components.NimManager import nimmanager
+from Components.ServiceName import ServiceName
+from Components.Clock import Clock
 from Components.EventInfo import EventInfo
 
 import xml.dom.minidom
@@ -546,6 +548,8 @@ class ChannelSelection(ChannelSelectionBase, ChannelSelectionEdit):
 class ServiceInfoWindow(Screen):
        def __init__(self, session):
                Screen.__init__(self, session)
+               self["Service_Name"] = ServiceName(self.session.nav)
+               self["Clock"] = Clock()
                self["Event_Now_StartTime"] = EventInfo(self.session.nav, EventInfo.Now_StartTime)
                self["Event_Next_StartTime"] = EventInfo(self.session.nav, EventInfo.Next_StartTime)
                self["Event_Now"] = EventInfo(self.session.nav, EventInfo.Now)