Skip to content

Commit

Permalink
MinuteInput - added posibility set maxValue for minute input
Browse files Browse the repository at this point in the history
  • Loading branch information
ims authored and Huevos committed Aug 26, 2023
1 parent c8dd9fb commit 98d5799
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/python/Screens/MinuteInput.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@


class MinuteInput(Screen):
def __init__(self, session, basemins=5):
def __init__(self, session, basemins=5, maxValue=False):
Screen.__init__(self, session)

self["minutes"] = Input(str(basemins), type=Input.NUMBER)
self["minutes"] = Input(str(basemins), type=Input.NUMBER, maxValue=maxValue)

self["actions"] = NumberActionMap(["InputActions", "MinuteInputActions", "TextEntryActions", "KeyboardInputActions"],
{
Expand Down

0 comments on commit 98d5799

Please sign in to comment.