From aa9f5d5c24c125df5c865c919bdc1a51ce579ec7 Mon Sep 17 00:00:00 2001 From: Moritz Venn Date: Sun, 27 Sep 2009 16:47:16 +0000 Subject: [PATCH] button -> statictext, center screens, bump required e2 version --- epgrefresh/CONTROL/control | 2 +- epgrefresh/src/EPGRefreshChannelEditor.py | 32 +++++++++++------------ epgrefresh/src/EPGRefreshConfiguration.py | 26 +++++++++--------- 3 files changed, 30 insertions(+), 30 deletions(-) diff --git a/epgrefresh/CONTROL/control b/epgrefresh/CONTROL/control index 77e54b43..3d9ec6f2 100644 --- a/epgrefresh/CONTROL/control +++ b/epgrefresh/CONTROL/control @@ -6,5 +6,5 @@ Section: extra Priority: optional Maintainer: Moritz Venn Homepage: http://www.ritzmo.de -Depends: enigma2(>=2.6git20090120), python-codecs, python-xml +Depends: enigma2(>=2.6git20090615), python-codecs, python-xml Source: http://enigma2-plugins.schwerkraft.elitedvb.net/ diff --git a/epgrefresh/src/EPGRefreshChannelEditor.py b/epgrefresh/src/EPGRefreshChannelEditor.py index 750c2266..d8570e76 100644 --- a/epgrefresh/src/EPGRefreshChannelEditor.py +++ b/epgrefresh/src/EPGRefreshChannelEditor.py @@ -12,7 +12,7 @@ from Screens.Setup import SetupSummary # GUI (Components) from Components.ActionMap import ActionMap -from Components.Button import Button +from Components.Sources.StaticText import StaticText # Configuration from Components.config import getConfigListEntry, ConfigSelection, \ @@ -40,16 +40,16 @@ class SimpleBouquetSelection(SimpleChannelSelection): class EPGRefreshServiceEditor(Screen, ConfigListScreen): """Edit Services to be refreshed by EPGRefresh""" - skin = """ - - - - - - - - - + skin = """ + + + + + + + + + """ def __init__(self, session, services): @@ -75,11 +75,11 @@ class EPGRefreshServiceEditor(Screen, ConfigListScreen): ConfigListScreen.__init__(self, self.list, session = session, on_change = self.changed) - # Initialize Buttons - self["key_red"] = Button(_("Cancel")) - self["key_green"] = Button(_("OK")) - self["key_yellow"] = Button(_("delete")) - self["key_blue"] = Button(_("New")) + # Initialize StaticTexts + self["key_red"] = StaticText(_("Cancel")) + self["key_green"] = StaticText(_("OK")) + self["key_yellow"] = StaticText(_("delete")) + self["key_blue"] = StaticText(_("New")) # Define Actions self["actions"] = ActionMap(["SetupActions", "ColorActions"], diff --git a/epgrefresh/src/EPGRefreshConfiguration.py b/epgrefresh/src/EPGRefreshConfiguration.py index 44a98023..20656302 100644 --- a/epgrefresh/src/EPGRefreshConfiguration.py +++ b/epgrefresh/src/EPGRefreshConfiguration.py @@ -11,7 +11,7 @@ from Screens.Setup import SetupSummary # GUI (Components) from Components.ActionMap import ActionMap -from Components.Button import Button +from Components.Sources.StaticText import StaticText # Configuration from Components.config import config, getConfigListEntry @@ -23,14 +23,14 @@ class EPGRefreshConfiguration(Screen, ConfigListScreen): skin = """ - - - - - - - - + + + + + + + + """ def __init__(self, session): @@ -62,10 +62,10 @@ class EPGRefreshConfiguration(Screen, ConfigListScreen): ConfigListScreen.__init__(self, self.list, session = session, on_change = self.changed) # Initialize Buttons - self["key_red"] = Button(_("Cancel")) - self["key_green"] = Button(_("OK")) - self["key_yellow"] = Button(_("Refresh now")) - self["key_blue"] = Button(_("Edit Services")) + self["key_red"] = StaticText(_("Cancel")) + self["key_green"] = StaticText(_("OK")) + self["key_yellow"] = StaticText(_("Refresh now")) + self["key_blue"] = StaticText(_("Edit Services")) # Define Actions self["actions"] = ActionMap(["SetupActions", "ColorActions"], -- 2.20.1