[Python] How do I get custom colors using color chooser from tkinter

Discussão em 'Python' iniciado por Stack, Novembro 25, 2024.

  1. Stack

    Stack Membro Participativo

    In the askcolor function of class Chooser in the pop up you can add color to a custom colors list. I was wondering if I can somehow get the values of those colors, but I could not find a way how to do it.

    Code for the pop up:

    from tkinter import colorchooser
    color_code = colorchooser.askcolor()


    Pop up screen shot:

    [​IMG]

    Continue reading...

Compartilhe esta Página