# ==============================================================================
"""COLORS : edit a color with RGB scales"""
# ==============================================================================
__author__  = "Christophe Schlick 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
  win = Win(title='COLORS', op=5)
  # ----------------------------------------------------------------------------
  # TODO (use 1 Frame, 1 Label, 3 Scales, 1 Brick)
  # ----------------------------------------------------------------------------
  win.brick, win.label = None, None                  # friendly names for all
  win.R, win.G, win.B = None, None, None             # widgets used in callbacks
  win.loop()
# ------------------------------------------------------------------------------
def on_scale() -> None:
  """callback function for all three RGB scales"""
  # TODO (get current values for R,G,B scales and convert them to hexadecimal)
  # TODO (built color string '#RRGGBB' and update properties on Label and Brick)
# ==============================================================================
if __name__ == '__main__':
  main()
# ==============================================================================
