Color chooser : Color Chooser : Tkinker PYTHON TUTORIALS


PYTHON TUTORIALS » Tkinker » Color Chooser »

 

Color chooser


Color chooser
from Tkinter import *
from tkColorChooser import askcolor
     
def setBgColor():
    (triple, hexstr= askcolor()
    if hexstr:
        print hexstr
        push.config(bg=hexstr)
     
root = Tk()
push = Button(root, text='Set Background Color', command=setBgColor)
push.config(height=3, font=('times', 20'bold'))
push.pack(expand=YES, fill=BOTH)
root.mainloop()



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Tkinker
» Color Chooser