Python Colorchooser Python Colorchooser tkinter tkinter

Python Colorchooser


The hex value is in the second position (1 since python's iterables are zero-indexed), so this simple code should do :

from tkinter.colorchooser import askcolordef colorcode():    return askcolor()[1]