Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tk_choosecolor returns the chosen color only when the sliders are moved.

Status
Not open for further replies.

plvn

Programmer
Jun 1, 2017
1
IN
hello,

with tk_choosecolor dialog box i can only get the chosen color updated on the right hand side solid square , only by using the sliders. if i just edit the RGB values by typing in the values , the solid square is not updated with the the chosen color, this happens only in linux . In windows i can edit the individual rgb values by typing in the numbers and the color still gets updated . is this a know bug??

i am doing this in a tcl script

set color [tk_chooseColor -title "choose a color" -parent .preferences_colors -initialcolor gray]

puts stderr $color

$color value changes to the chosen color only when the sliders are moved to choose the color. not when i type in the rgb values.

thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top