SNIPPET: Sliderule simulation

Rubies:

Here’s the latest in my series of irrelevant irreverent TkCanvas sample
codes:

    http://www.rubygarden.org/ruby?SlideRule

If you run it, it’s a slide rule. You can slide the middle bar and the
hairline back and forth.

You may know people old enough to remember how to use one of the freaking
things! :wink:

If someone here knows how to easily clean up the Wiki special effects
(without wrecking the source) I’d be much obliged.

Let the search engines remember it illustrates RubyTk examples of bind,
Button-1, Motion, ButtonRelease-1, and TkPhotoImage.

It does not illustrate ‘bind_remove’, because I discovered the work-around
(binding to a no-op) before I could e-search docs for ‘bind_remove’.

···


Phlip
http://www.c2.com/cgi/wiki?RatAndTuyen
– Shock Value Added –