MCPcopy Index your code
hub / github.com/PySimpleGUI/PySimpleGUI / _parse_h_m_s

Method _parse_h_m_s

PySimpleGUI/PySimpleGUI.py:12500–12514  ·  view source on GitHub ↗

Parses Hour:Minute:Seconds string into an int tuple (hour, min, sec) :param h_m_s: If True then repeat timer events until timer is explicitly stopped :type h_m_s: str :return: Timer ID for the timer or None if error :rtype: Tuple(int,

(self, h_m_s)

Source from the content-addressed store, hash-verified

12498 self._OnClosingCallback()
12499
12500 def _parse_h_m_s(self, h_m_s):
12501 """
12502 Parses Hour:Minute:Seconds string into an int tuple (hour, min, sec)
12503
12504 :param h_m_s: If True then repeat timer events until timer is explicitly stopped
12505 :type h_m_s: str
12506 :return: Timer ID for the timer or None if error
12507 :rtype: Tuple(int, int, int) | Tuple(None, None, None)
12508 """
12509
12510 try:
12511 hours, minutes, seconds = map(int, h_m_s.split(":"))
12512 except:
12513 return None, None, None
12514 return hours, minutes, seconds
12515
12516
12517 def timer_start(self, frequency_ms, key=EVENT_TIMER, repeating=True):

Callers 1

timer_startMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected