From 33f673212d8b165f3f7338e5f5b1afa37c7c059a Mon Sep 17 00:00:00 2001 From: Hains van den Bosch Date: Sat, 8 Feb 2025 11:58:36 +0100 Subject: [PATCH 1/2] lcd4linuix: Reinstate keyLeft(), keyRight and OK key As removal has some side-effects. https://forums.openpli.org/topic/100767-lcd4linux-cannot-change-settings-with-button-right/page-3#entry1672056 --- lcd4linux/src/plugin.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lcd4linux/src/plugin.py b/lcd4linux/src/plugin.py index 6ded4bd..af53567 100644 --- a/lcd4linux/src/plugin.py +++ b/lcd4linux/src/plugin.py @@ -5531,6 +5531,7 @@ def __init__(self, session, args=0): "cancel": self.cancel, "menu": self.SetupMenu, "displayHelp": self.Exchange, + "ok": self.keyOK, "info": self.ResetInfos }, -1) self.mode = _("On") @@ -8260,6 +8261,18 @@ def cancel(self): isMediaPlayer = self.SaveisMediaPlayer TFTCheck(False) + def keyLeft(self): + L4logE("key L") + self.LastSelect = str(self["config"].getCurrentIndex()) + self.getCurrentValue()[:3] + ConfigListScreen.keyLeft(self) + self.SetList() + + def keyRight(self): + L4logE("key R") + self.LastSelect = str(self["config"].getCurrentIndex()) + self.getCurrentValue()[:3] + ConfigListScreen.keyRight(self) + self.SetList() + def restartGUI(self, answer): if answer: L4log("GUI Restart") From 764918a0e3f75d1c1fe79ba20ef647c8c5f54972 Mon Sep 17 00:00:00 2001 From: "Mr.Servo" Date: Fri, 7 Feb 2025 14:14:57 +0100 Subject: [PATCH 2/2] [LCD4linux] v5.0-r25 improvement: progress bar without frame HINT: **LCD4linux** is still working under Python2 and Python3 --- lcd4linux/src/plugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lcd4linux/src/plugin.py b/lcd4linux/src/plugin.py index af53567..8fdf271 100644 --- a/lcd4linux/src/plugin.py +++ b/lcd4linux/src/plugin.py @@ -12502,6 +12502,8 @@ def putProgress(workaround, draw, im): self.draw[draw].rectangle((POSX + 10, ConfigPos + 1, POSX + ProgressBar + 10, ConfigPos + ConfigSize - 1), outline=ConfigColor) else: self.draw[draw].rectangle((POSX + 10, ConfigPos + 1, POSX + ProgressBar + 10, ConfigPos + ConfigSize - 1), outline=ConfigColor, fill=ConfigColorBG) + elif ConfigBorder.startswith("false"): + self.draw[draw].rectangle((POSX + 9, ConfigPos, POSX + ProgressBar + 11, ConfigPos + ConfigSize), fill=ConfigColorBG) elif ConfigBorder == "line": self.draw[draw].rectangle((POSX + 10, ConfigPos + int(ConfigSize / 2) - 1, POSX + ProgressBar + 10, ConfigPos + int(ConfigSize / 2) + 1), outline=ConfigColor, fill=ConfigColor) self.draw[draw].rectangle((POSX + 10, ConfigPos, POSX + event_run + 10, ConfigPos + ConfigSize), fill=ConfigColor)