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

  • Whoops!

    Just discovered that my Dreamwidth posts haven't been crossposting to LJ since shortly after the pandemic started because I forgot to update my…

  • Milestones

    On Tuesday two weeks ago, I gave the talk that I was scheduled to give a year ago before the conference I was giving it at was cancelled. It's still…

  • Snowpocalypse 21

    It was cloudy and snizzling most of the day Saturday, but the snow didn't really start until Saturday night, and then it kept going all day Sunday.…

  • 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