# ==============================================================================
"""CHRONO : a user-controlled digital stopwatch"""
# ==============================================================================
__author__  = "Christophe Schlick modified by Philippe Blasi"
__version__ = "0.0" # skeleton version
__date__    = "2022-11-12"
# ==============================================================================
from ezTK import *
# ------------------------------------------------------------------------------
def main():
  """create the main window and pack the widgets"""
  global win
  font1, font2 = 'Arial 16', 'Times 120 bold'
  win = Win(title='CHRONO', font=font1, op=5)
  # ----------------------------------------------------------------------------
  # TODO (use 1 Frame, 2 Buttons, 1 Label)
  # ----------------------------------------------------------------------------
  win.loop()
# ------------------------------------------------------------------------------
def on_reset() -> None:
  """callback function for the 'RESET' button"""
  # TODO (reset counter value to 0)
# ------------------------------------------------------------------------------
def on_start() -> None:
  """callback function for the 'START/STOP' button"""
  # TODO (switch label for START/STOP button and call 'tick' to start counter) 
# ------------------------------------------------------------------------------
def tick() -> None:
  """increment counter value and schedule next 'tick'"""
  # TODO (increment counter value and use 'win.after' for recursive call)
# ==============================================================================
if __name__ == '__main__':
  main()
# ==============================================================================
