Popular recipes by Donal Fellows http://code.activestate.com/recipes/users/99497/2001-09-11T05:51:50-07:00ActiveState Code Recipestry ... catch ... finally (Tcl) 2001-09-11T03:13:07-07:00Donal Fellowshttp://code.activestate.com/recipes/users/99497/http://code.activestate.com/recipes/68396-try-catch-finally/ <p style="color: grey"> Tcl recipe 68396 by <a href="/recipes/users/99497/">Donal Fellows</a> . </p> <p>The Java try ... catch ... finally construct is really nice for those cases when you want to guarantee to always release a resource (particularly a file handle) even if the code generates an exception. It is also very useful to be able to use different types of error handling depending on the error that occurred. This code implements such a facility in pure Tcl.</p> Raw Console Input on UNIX Platforms (Tcl) 2001-09-11T05:11:20-07:00Donal Fellowshttp://code.activestate.com/recipes/users/99497/http://code.activestate.com/recipes/68397-raw-console-input-on-unix-platforms/ <p style="color: grey"> Tcl recipe 68397 by <a href="/recipes/users/99497/">Donal Fellows</a> (<a href="/recipes/tags/platform/">platform</a>). </p> <p>Get those direct keystrokes here by leveraging the power of stty!</p> Scrollable Pane (Tcl) 2001-09-11T05:51:50-07:00Donal Fellowshttp://code.activestate.com/recipes/users/99497/http://code.activestate.com/recipes/68400-scrollable-pane/ <p style="color: grey"> Tcl recipe 68400 by <a href="/recipes/users/99497/">Donal Fellows</a> (<a href="/recipes/tags/binding/">binding</a>). </p> <p>Implementation of a scrollable pane in pure Tcl/Tk.</p> LCD Number Display (Tcl) 2001-09-10T06:50:07-07:00Donal Fellowshttp://code.activestate.com/recipes/users/99497/http://code.activestate.com/recipes/68382-lcd-number-display/ <p style="color: grey"> Tcl recipe 68382 by <a href="/recipes/users/99497/">Donal Fellows</a> (<a href="/recipes/tags/binding/">binding</a>). </p> <p>Display LCD digits in a canvas.</p> Convert (La)TeX math expressions to Tk Images on the fly (Tcl) 2001-09-11T05:24:09-07:00Donal Fellowshttp://code.activestate.com/recipes/users/99497/http://code.activestate.com/recipes/68398-convert-latex-math-expressions-to-tk-images-on-the/ <p style="color: grey"> Tcl recipe 68398 by <a href="/recipes/users/99497/">Donal Fellows</a> (<a href="/recipes/tags/graphics/">graphics</a>, <a href="/recipes/tags/math/">math</a>). </p> <p>This code takes a TeX or LaTeX math expression and converts it into a Tk image suitable for placing in any suitable widget. This technique is ideal for complex documentation where you don't want to maintain a separate set of image files, but is not really fast enough for interactive use (unless your machine is much faster than mine.)</p> Tk Window Dump (Tcl) 2001-09-11T05:29:53-07:00Donal Fellowshttp://code.activestate.com/recipes/users/99497/http://code.activestate.com/recipes/68399-tk-window-dump/ <p style="color: grey"> Tcl recipe 68399 by <a href="/recipes/users/99497/">Donal Fellows</a> (<a href="/recipes/tags/debugging/">debugging</a>). </p> <p>Dump an arbitrary widget to an image file of (almost) any kind by using XWD and ImageMagick.</p>