aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/SystemPlugins/VideoTune
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2008-02-11 14:54:44 +0000
committerFelix Domke <tmbinc@elitedvb.net>2008-02-11 14:54:44 +0000
commite99f2b661194ab3534c8fd6d593c453a5f5e4bbf (patch)
treeb0bce12e47977ffb2cd4652796d2129d5142adee /lib/python/Plugins/SystemPlugins/VideoTune
parent6874d42b68d15fa07542bc536535539997d9ba68 (diff)
downloadenigma2-e99f2b661194ab3534c8fd6d593c453a5f5e4bbf.tar.gz
enigma2-e99f2b661194ab3534c8fd6d593c453a5f5e4bbf.zip
interface to video start wizard
Diffstat (limited to 'lib/python/Plugins/SystemPlugins/VideoTune')
-rw-r--r--lib/python/Plugins/SystemPlugins/VideoTune/plugin.py25
1 files changed, 24 insertions, 1 deletions
diff --git a/lib/python/Plugins/SystemPlugins/VideoTune/plugin.py b/lib/python/Plugins/SystemPlugins/VideoTune/plugin.py
index 0394c700..913a60ae 100644
--- a/lib/python/Plugins/SystemPlugins/VideoTune/plugin.py
+++ b/lib/python/Plugins/SystemPlugins/VideoTune/plugin.py
@@ -4,6 +4,28 @@ def videoFinetuneMain(session, **kwargs):
from VideoFinetune import VideoFinetune
session.open(VideoFinetune)
+def videoFinetuneWizard(*args, **kwargs):
+ # the way the video wizard tells this plugin that the "testcard" should be displayed is not so nice yet.
+ show_testcard = False
+ try:
+ from Components.config import config
+ show_testcard = config.misc.showtestcard.value
+ except KeyError:
+ print "not showing finetune wizard, config variable doesn't exist"
+ if show_testcard:
+ from VideoFinetune import VideoFinetune
+ config.misc.showtestcard.value = False
+ return VideoFinetune(*args, **kwargs)
+ else:
+ print "showtestcard is false"
+ from Screens.Screen import Screen
+ class Dummy(Screen):
+ skin = "<screen></screen>"
+ def __init__(self, session):
+ Screen.__init__(self, session)
+ self.close()
+ return Dummy(*args, **kwargs)
+
def startSetup(menuid):
if menuid != "system":
return [ ]
@@ -12,5 +34,6 @@ def startSetup(menuid):
def Plugins(**kwargs):
return [
- PluginDescriptor(name=("Video Finetune"), description=("Fine-tune your video"), where = PluginDescriptor.WHERE_MENU, fnc=startSetup)
+ PluginDescriptor(name=("Video Finetune"), description=("Fine-tune your video"), where = PluginDescriptor.WHERE_MENU, fnc=startSetup),
+ PluginDescriptor(name=("Video Finetune Wizard"), where = PluginDescriptor.WHERE_WIZARD, fnc=(1, videoFinetuneWizard))
]