Skip to content

Commit

Permalink
Merge pull request #10 from Hains/python3
Browse files Browse the repository at this point in the history
Update LCD4linux
  • Loading branch information
technl authored Feb 8, 2025
2 parents 72754ee + 764918a commit 837f528
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lcd4linux/src/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -12489,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)
Expand Down

0 comments on commit 837f528

Please sign in to comment.