X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fpython%2FPlugins%2FSystemPlugins%2FVideoTune%2Fplugin.py;h=9e90c72e61a722dd644b60478e69c62fe52bbcf8;hb=0c417aee83bac3ab0a70d5e0b3360d18b3663a23;hp=0394c70092328d093548580e93a0fc59d3fb06d9;hpb=1cc47c0c8e215ac9473460bfb46d100b6f706564;p=vuplus_dvbapp diff --git a/lib/python/Plugins/SystemPlugins/VideoTune/plugin.py b/lib/python/Plugins/SystemPlugins/VideoTune/plugin.py index 0394c70..9e90c72 100644 --- a/lib/python/Plugins/SystemPlugins/VideoTune/plugin.py +++ b/lib/python/Plugins/SystemPlugins/VideoTune/plugin.py @@ -4,13 +4,36 @@ 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 fine-tuning 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 = "" + def __init__(self, session): + Screen.__init__(self, session) + self.close() + return Dummy(*args, **kwargs) + def startSetup(menuid): if menuid != "system": return [ ] - return [(("Video Finetune"), videoFinetuneMain, "video_finetune", None)] + return [(_("Video Fine-Tuning"), videoFinetuneMain, "video_finetune", None)] def Plugins(**kwargs): return [ - PluginDescriptor(name=("Video Finetune"), description=("Fine-tune your video"), where = PluginDescriptor.WHERE_MENU, fnc=startSetup) + PluginDescriptor(name=_("Video Fine-Tuning"), description=_("fine-tune your display"), where = PluginDescriptor.WHERE_MENU, needsRestart = False, fnc=startSetup), + PluginDescriptor(name=_("Video Fine-Tuning Wizard"), where = PluginDescriptor.WHERE_WIZARD, needsRestart = False, fnc=(1, videoFinetuneWizard)) ]