# ==============================================================================
"""COUNTER : a user-controlled digital counter"""
# ==============================================================================
__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 = 'Courier 16 bold', 'Arial 96 bold'
  win = Win(title='COUNTER', font=font1, op=5)
  # ----------------------------------------------------------------------------
  # TODO (use 1 Frame, 7 Buttons using font1, 1 Label using font2)
  # ----------------------------------------------------------------------------
  win.loop()
# ------------------------------------------------------------------------------
def on_but(index:int) -> None:
  """generic callback function for all seven buttons"""
  # TODO (update counter value according to selected button given by 'index')
# ==============================================================================
if __name__ == '__main__':
  main()
# ==============================================================================
