HarddiskSelection works now
authorRonny Strutz <ronny.strutz@multimedia-labs.de>
Tue, 30 Aug 2005 12:31:36 +0000 (12:31 +0000)
committerRonny Strutz <ronny.strutz@multimedia-labs.de>
Tue, 30 Aug 2005 12:31:36 +0000 (12:31 +0000)
lib/python/Screens/HarddiskSetup.py
skin.py

index 3fea87a..45ce954 100644 (file)
@@ -1,11 +1,20 @@
 from Screen import Screen
 from Components.ActionMap import ActionMap
 from Screen import Screen
 from Components.ActionMap import ActionMap
+from Components.Harddisk import harddiskmanager                        #global harddiskmanager
+from Components.MenuList import MenuList
 
 class HarddiskSelection(Screen):
 
 class HarddiskSelection(Screen):
-  def __init__(self, session):
-    Screen.__init__(self, session)
+       def __init__(self, session):
+               Screen.__init__(self, session)
 
 
-    self["actions"] = ActionMap(["OkCancelActions"],
-      {
-        "cancel": self.close
-      })
+               self["hddlist"] = MenuList(harddiskmanager.HDDList())
+               
+               self["actions"] = ActionMap(["OkCancelActions"],
+               {
+                       "ok": self.okbuttonClick ,
+                       "cancel": self.close
+               })
+
+       def okbuttonClick(self):
+               print "ok"
+               pass
diff --git a/skin.py b/skin.py
index ffaa201..af1c97c 100644 (file)
--- a/skin.py
+++ b/skin.py
@@ -54,7 +54,8 @@ dom = xml.dom.minidom.parseString(
                </screen>
                <screen name="ScartLoopThrough" position="0,0" size="720,576">
                </screen>
                </screen>
                <screen name="ScartLoopThrough" position="0,0" size="720,576">
                </screen>
-               <screen name="HarddiskSelection" position="140,125" size="460,220">
+               <screen name="HarddiskSelection" position="140,165" size="360,100">
+                       <widget name="hddlist" position="20,10" size="320,80" />
                </screen>
                <screen name="Setup" position="140,125" size="460,220" title="Setup">
                        <widget name="config" position="10,30" size="420,120" />
                </screen>
                <screen name="Setup" position="140,125" size="460,220" title="Setup">
                        <widget name="config" position="10,30" size="420,120" />