Skip to content

Commit

Permalink
Merge pull request #7 from Hains/python3
Browse files Browse the repository at this point in the history
  • Loading branch information
littlesat authored Dec 11, 2024
2 parents 197670d + 3084338 commit 3e4dcf3
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions lcd4linux/src/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -5488,14 +5488,10 @@ def __init__(self, session, args=0):
"green": self.save,
"yellow": self.LCDrestart,
"blue": self.Page,
"nextBouquet": self.KeyUp,
"prevBouquet": self.KeyDown,
"save": self.save,
"cancel": self.cancel,
"menu": self.SetupMenu,
"displayHelp": self.Exchange,
"ok": self.keyOK,
"seekFwd": self.NextScreenKey,
"info": self.ResetInfos
}, -1)
self.mode = _("On")
Expand Down Expand Up @@ -8175,34 +8171,6 @@ 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 KeyUp(self):
self.LastSelect = str(self["config"].getCurrentIndex())
L4logE("key U")
if self["config"].getCurrentIndex() - self.ConfLines > 0:
self["config"].setCurrentIndex(self["config"].getCurrentIndex() - self.ConfLines)
else:
self["config"].setCurrentIndex(0)

def KeyDown(self):
self.LastSelect = str(self["config"].getCurrentIndex())
L4logE("key D")
if self["config"].getCurrentIndex() + self.ConfLines <= (len(self["config"].getList()) - 1):
self["config"].setCurrentIndex(self["config"].getCurrentIndex() + self.ConfLines)
else:
self["config"].setCurrentIndex((len(self["config"].getList()) - 1))

def restartGUI(self, answer):
if answer:
L4log("GUI Restart")
Expand Down

0 comments on commit 3e4dcf3

Please sign in to comment.