python color picker

Solutions on MaxInterview for python color picker by the best coders in the world

showing results for - "python color picker"
Fabio
07 Apr 2020
1# Python program to create color chooser dialog box
2from tkinter import *
3from tkinter import colorchooser
4 
5def choose_color():
6    color_code = colorchooser.askcolor(title ="Choose color")
7    print(color_code)
8 
9root = Tk()
10button = Button(root, text = "Select color",
11                   command = choose_color)
12button.pack()
13root.geometry("300x300")
14root.mainloop()
15
16