def showInfo(self): from Plugins.SystemPlugins.AdvHdmi.plugin import advhdmiHooks, ADVHDMI_VERSION infoMsg = _("Version: ") + ADVHDMI_VERSION + "\n\n" if advhdmiHooks: infoMsg += _("Registered HDMI-Cec-Hooks:") + "\n" for hookKey, hook in advhdmiHooks.iteritems(): infoMsg += _("Hook") + " '" + str(hookKey) + "':\n" infoMsg += str(hook.hookDescription) + "\n\n" else: infoMsg += _("No HDMI-Cec-Hooks are registered!") self.session.open(MessageBox, infoMsg, MessageBox.TYPE_INFO, title=_("Advanced HDMI-Cec Control"))
def showInfo(self): from Plugins.SystemPlugins.AdvHdmi.plugin import advhdmiHooks, ADVHDMI_VERSION infoMsg = _("Version: ") + ADVHDMI_VERSION + "\n\n" if advhdmiHooks: infoMsg += _("Registered HDMI-Cec-Hooks:") + "\n" for hookKey,hook in advhdmiHooks.iteritems(): infoMsg += _("Hook") + " '" + str(hookKey) + "':\n" infoMsg += str(hook.hookDescription) + "\n\n" else: infoMsg += _("No HDMI-Cec-Hooks are registered!") self.session.open(MessageBox, infoMsg, MessageBox.TYPE_INFO, title = _("Advanced HDMI-Cec Control"))