add HarddiskSetup
authorRonny Strutz <ronny.strutz@multimedia-labs.de>
Tue, 30 Aug 2005 12:04:19 +0000 (12:04 +0000)
committerRonny Strutz <ronny.strutz@multimedia-labs.de>
Tue, 30 Aug 2005 12:04:19 +0000 (12:04 +0000)
lib/python/Screens/HarddiskSetup.py [new file with mode: 0644]
lib/python/Screens/Menu.py

diff --git a/lib/python/Screens/HarddiskSetup.py b/lib/python/Screens/HarddiskSetup.py
new file mode 100644 (file)
index 0000000..3fea87a
--- /dev/null
@@ -0,0 +1,11 @@
+from Screen import Screen
+from Components.ActionMap import ActionMap
+
+class HarddiskSelection(Screen):
+  def __init__(self, session):
+    Screen.__init__(self, session)
+
+    self["actions"] = ActionMap(["OkCancelActions"],
+      {
+        "cancel": self.close
+      })
index 11b265e..da36eb3 100644 (file)
@@ -7,6 +7,7 @@ from Components.Header import Header
 from Screens.Setup import Setup
 from ServiceScan import ServiceScan
 from ScartLoopThrough import ScartLoopThrough
+from HarddiskSetup import HarddiskSelection
 from Components.Button import Button
 from Components.Label import Label
 from Components.ProgressBar import ProgressBar
@@ -57,7 +58,7 @@ mdom = xml.dom.minidom.parseString(
                                <item text="Timezone">self.openSetup("timezone")</item>
                                <item text="Video Audio">self.openSetup("avsetup")</item>
                                <item text="UHF Modulator">self.openSetup("rfmod")</item>
-                               <item text="Harddisk"></item>
+                               <item text="Harddisk">self.openDialog(HarddiskSelection)</item>
                                <item text="Remote Control">self.openSetup("rc")</item>
                                <item text="Keyboard">self.openSetup("keyboard")</item>
                                <item text="OSD">self.openSetup("osd")</item>