diff options
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Plugins/update.py | 1 | ||||
| -rw-r--r-- | lib/python/Screens/HarddiskSetup.py | 4 | ||||
| -rw-r--r-- | lib/python/Screens/Setup.py | 9 |
3 files changed, 9 insertions, 5 deletions
diff --git a/lib/python/Plugins/update.py b/lib/python/Plugins/update.py index c0c1ecb5..b8ff6ec4 100644 --- a/lib/python/Plugins/update.py +++ b/lib/python/Plugins/update.py @@ -28,7 +28,6 @@ class Example(Screen): self.session.openWithCallback(self.doUpdate, MessageBox, _("Do you want to update your Dreambox?\nAfter pressing OK, please wait!")) def doUpdate(self, val = False): - if val: lines = os.popen("ipkg update && ipkg upgrade", "r").readlines() string = "" diff --git a/lib/python/Screens/HarddiskSetup.py b/lib/python/Screens/HarddiskSetup.py index 290d0bac..582b5ba8 100644 --- a/lib/python/Screens/HarddiskSetup.py +++ b/lib/python/Screens/HarddiskSetup.py @@ -3,6 +3,7 @@ from Components.ActionMap import ActionMap from Components.Harddisk import harddiskmanager #global harddiskmanager from Components.MenuList import MenuList from Components.Label import Label +from Components.Pixmap import Pixmap from Screens.MessageBox import MessageBox from enigma import eTimer @@ -28,7 +29,8 @@ class HarddiskSetup(Screen): self["model"] = Label(_("Model: ") + hdd.model()) self["capacity"] = Label(_("Capacity: ") + hdd.capacity()) self["bus"] = Label(_("Bus: ") + hdd.bus()) - self["initialize"] = Label(_("Initialize")) + self["initialize"] = Pixmap() + self["initializetext"] = Label(_("Initialize")) self["actions"] = ActionMap(["OkCancelActions"], { diff --git a/lib/python/Screens/Setup.py b/lib/python/Screens/Setup.py index d9fc0893..d6215afd 100644 --- a/lib/python/Screens/Setup.py +++ b/lib/python/Screens/Setup.py @@ -4,6 +4,7 @@ from Components.config import config #global config instance from Components.config import configSelection from Components.ConfigList import ConfigList from Components.Label import Label +from Components.Pixmap import Pixmap import xml.dom.minidom from xml.dom import EMPTY_NAMESPACE @@ -105,9 +106,11 @@ class Setup(Screen): self["title"] = Label(_(myTitle)); - self["ok"] = Label("OK") - self["cancel"] = Label("Cancel") - + self["oktext"] = Label(_("OK")) + self["canceltext"] = Label(_("Cancel")) + self["ok"] = Pixmap() + self["cancel"] = Pixmap() + self["actions"] = NumberActionMap(["SetupActions"], { "cancel": self.keyCancel, |
