Skip to content

Commit

Permalink
[LCD] PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
Twol committed Oct 2, 2023
1 parent af72dc6 commit a0499aa
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions lib/python/Components/Lcd.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,19 +421,19 @@ def lcdLiveTvChanged(configElement):
elif can_lcdmodechecking and getBoxType() in ('gbquad4k', 'gbue4k'):
# (0:normal, 1:video0, 2:fb, 3:vide0+fb, 4:video1, 5:vide0+video1, 6:video1+fb, 7:video0+video1+fb)
config.lcd.minitvmode = ConfigSelection(default="0", choices=[
("0", _("normal")),
("1", _("MiniTV") + _(" - video0")),
("3", _("MiniTV with OSD") + _(" - video0")),
("2", _("OSD")),
("4", _("MiniTV") + _(" - video1")),
("6", _("MiniTV with OSD") + _(" - video1")),
("5", _("MiniTV") + _(" - video0+video1")),
("7", _("MiniTV with OSD") + _(" - video0+video1"))])
("0", _("normal")),
("1", _("MiniTV") + _(" - video0")),
("3", _("MiniTV with OSD") + _(" - video0")),
("2", _("OSD")),
("4", _("MiniTV") + _(" - video1")),
("6", _("MiniTV with OSD") + _(" - video1")),
("5", _("MiniTV") + _(" - video0+video1")),
("7", _("MiniTV with OSD") + _(" - video0+video1"))])
config.lcd.minitvmode.addNotifier(setLCDminitvmode)
config.lcd.minitvpipmode = ConfigSelection(default="0", choices=[
("0", _("off")),
("4", _("PIP")),
("6", _("PIP with OSD"))])
("0", _("off")),
("4", _("PIP")),
("6", _("PIP with OSD"))])
config.lcd.minitvpipmode.addNotifier(setLCDminitvpipmode)
config.lcd.minitvfps = ConfigSlider(default=30, limits=(0, 30))
config.lcd.minitvfps.addNotifier(setLCDminitvfps)
Expand All @@ -459,21 +459,21 @@ def scroll_delay(el):
def initial_scroll_delay(el):
open(SystemInfo["VFD_initial_scroll_delay"], "w").write(el.value)
choicelist = [
("10000", "10 " + _("seconds")),
("20000", "20 " + _("seconds")),
("30000", "30 " + _("seconds")),
("0", _("no delay"))]
("10000", "10 " + _("seconds")),
("20000", "20 " + _("seconds")),
("30000", "30 " + _("seconds")),
("0", _("no delay"))]
config.usage.vfd_initial_scroll_delay = ConfigSelection(default="1000", choices=choicelist)
config.usage.vfd_initial_scroll_delay.addNotifier(initial_scroll_delay, immediate_feedback=False)

if SystemInfo["VFD_final_scroll_delay"] and getDisplayType() not in ('7segment'):
def final_scroll_delay(el):
open(SystemInfo["VFD_final_scroll_delay"], "w").write(el.value)
choicelist = [
("10000", "10 " + _("seconds")),
("20000", "20 " + _("seconds")),
("30000", "30 " + _("seconds")),
("0", _("no delay"))]
("10000", "10 " + _("seconds")),
("20000", "20 " + _("seconds")),
("30000", "30 " + _("seconds")),
("0", _("no delay"))]
config.usage.vfd_final_scroll_delay = ConfigSelection(default="1000", choices=choicelist)
config.usage.vfd_final_scroll_delay.addNotifier(final_scroll_delay, immediate_feedback=False)

Expand Down

0 comments on commit a0499aa

Please sign in to comment.