Beemer (dr_tectonic) wrote,
Beemer
dr_tectonic

DTRT

God I love working with Tcl/Tk. Once you get your mind wrapped properly around it (everything is a string. No, EVERYTHING), there are so many areas where it really just Does The Right Thing without any effort on your part.

Today's example: set up a slider so that, when another control changes state, the slider gets reconfigured. What happens when the slider gets reconfigured so its current value is off the end of the scale? It changes the value to the new maximum. Everywhere it needs to be changed! Which is exactly what I would have wanted, had I bothered to think about it beforehand. But I didn't have to!
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments