+ self.loadHelp()
+ self.loadButtons()
+ self.onLayoutFinish.append(self.afterLayout)
+
+ def afterLayout(self):
+ self.setTextFont
+ self.loadUrl(config.plugins.CurlyTx.defaultPage.value)
+
+ def loadHelp(self):
+ self.helpList.append((
+ self["actions"], "WizardActions",
+ [("up", _("Scroll page contents up"))]))
+ self.helpList.append((
+ self["actions"], "WizardActions",
+ [("down", _("Scroll page contents down"))]))
+ self.helpList.append((
+ self["actions"], "InfobarEPGActions",
+ [("showEventInfo", _("Show HTTP response headers"))]))
+ self.helpList.append((
+ self["actions"], "ColorActions",
+ [("red", _("Show program settings"))]))
+ self.helpList.append((
+ self["actions"], "ColorActions",
+ [("green", _("Reload current page URL"))]))
+ self.helpList.append((
+ self["actions"], "ColorActions",
+ [("yellow", _("Switch to next configured page URL"))]))
+ self.helpList.append((
+ self["actions"], "ColorActions",
+ [("blue", _("Switch to previous configured page URL"))]))
+ self.helpList.append((
+ self["actions"], "WizardActions",
+ [("ok", _("Close window"))]))
+ self.helpList.append((
+ self["actions"], "WizardActions",
+ [("back", _("Close window"))]))
+ self.helpList.append((
+ self["actions"], "HelpActions",
+ [("displayHelp", _("Show this help screen"))]))
+
+ def loadButtons(self):
+ pageCount = len(config.plugins.CurlyTx.pages)
+ if pageCount == 0:
+ self["key_green"].setText("")
+ self["key_yellow"].setText("")
+ self["key_blue"].setText("")
+ elif pageCount == 1:
+ self["key_green"].setText(_("Reload"))
+ self["key_yellow"].setText("")
+ self["key_blue"].setText("")
+ else:
+ self["key_green"].setText(_("Reload"))
+ self["key_yellow"].setText(_("Prev"))
+ self["key_blue"].setText(_("Next"))