code: def askcolor(color="red", parent=None, title=_("Color Chooser"), alpha=False):
      
      col = ColorPicker(parent, color, alpha, title)
      col.wait_window(col)
      res = col.get_color()
      if res:
          return res[0], res[2]
      else:
          return None, None
docs: Open a ColorPicker dialog and return the chosen color.
  
      :return: the selected color in RGB(A) and hexadecimal #RRGGBB(AA) formats.
               (None, None) is returned if the color selection is cancelled.
  
      :param color: initially selected color (RGB(A), HEX or tkinter color name)
      :type color: sequence[int] or str
      :param parent: parent widget
      :type parent: widget
      :param title: dialog title
      :type title: str
      :param alpha: whether to display the alpha channel
      :type alpha: bool