(color=None, **options)
return Chooser(**options).show()
Display dialog window for selection of a color.

    Convenience wrapper for the Chooser class.  Displays the color
    chooser dialog with color as the initial value.
Display dialog window for selection of a color.
Display dialog window for selection of a color .
def askcolor(color=None, **options):
    """Display dialog window for selection of a color.

    Convenience wrapper for the Chooser class.  Displays the color
    chooser dialog with color as the initial value.
    """

    if color:
        options = options.copy()
        options["initialcolor"] = color

    return Chooser(**options).show()
def askcolor ( color = None , * * options ) : if color : options = options . copy ( ) options [ "initialcolor" ] = color return Chooser ( * * options ) . show ( )