tkinter - Python - using tks.color_tints_and_shades -
i new python , looking use tkstuff package generate colour tints. information available here: http://pythonhosted.org/tks/colors.html
i have installed , imported colortint (from tks.color_tints_and_shades import colortint) have not been able working.
as newbie struggling working script. ideally user input rgb values , have resulting tints returned. alternative (and more complex) read file of rgb values , write file of original colour followed tints.
all appreciated!
thanks, a
edit:
i have tried far -
try: import tkinter tk except importerror: import tkinter tk tks.color_tints_and_shades import colortint tks.color_var import colorvar colour = (100,150, 200) if __name__ == '__main__': root = tk.tk() root.title('colour tint') entry = colortint(root, colour, count=5, percent=(1,5) ) entry.grid(row=0, column=0, sticky=tk.ew) root.columnconfigure(0, weight=1) root.mainloop()
i have started (or attempted start) hard-coded rgb value initially.
you've set variable colour
tuple:
colour = (100, 150, 200)
but according http://pythonhosted.org/tks/colors.html#tks.color_tints_and_shades.colortint since passing second parameter colortint
, should of type tks.color_var.colorvar
.
Comments
Post a Comment