()
| 51 | |
| 52 | # function to declare the tkniter clock |
| 53 | def 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 |