MCPcopy Create free account
hub / github.com/geekcomputers/Python / dig_clock

Function dig_clock

digital_clock.py:53–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51
52# function to declare the tkniter clock
53def dig_clock():
54 text_input = time.strftime("%H : %M : %S") # get the current local time from the PC
55
56 label.config(text=text_input)
57
58 # calls itself every 200 milliseconds
59 # to update the time display as needed
60 # could use >200 ms, but display gets jerky
61
62 label.after(200, dig_clock)
63
64
65# calling the function

Callers 1

digital_clock.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected