Sunday, September 2, 2012

Tkinter Floorplan Demo

This code is based on the Tcl floor.tcl demo which is a demonstration of the floorplan for DEC's Western Research Laboratory. The user can click on a floor to bring it to the front, mouse over a room to see it highlighted or enter a floor number in the textbook to have it highlighted.


Friday, August 31, 2012

Tkinter Built-in Bitmap Demo

This code is based on the Tcl bitmap.tcl demo. The demo displays the built-in bitmaps available on all systems; a number of other are available for Macs.

Tkinter Pendulum Demo

This code is based on the Tcl pendulum.tcl demo. It presents a simple, rotational, pendulum; sets it in motion and draws the pendulum's phase space. The user can change the position of the pendulum by clicking in the Pendulum Simulation panel.


Wednesday, August 29, 2012

Tkinter Animated Wave Demo

This code is based on the Tcl aniwave.tcl demo. A wave frequency line is drawn and animated, moving the frequency peak from right to left and back along the line.


Monday, August 27, 2012

Tkinter Animated Labels Demo

This code is based on the Tcl anilabel.tcl demo. It displays three labels with scrolling text and an animated GIF which is animated by rotating through it's animation frames.

Sunday, August 26, 2012

Tkinter Color Picker Demo

This code is based on the Tcl clrpick.tcl demo.



Clicking on one of the buttons pops up the native color picker dialog, which, in Windows is


Once a color is chosen either the background or foreground color of the widgets are changed.


Note that the background Style option for ttk.Button, in Windows, only changes the buttons highlight area and not the entire button background.

Saturday, August 25, 2012

Tkinter FileDialog Demo

This code is based on the Tcl filebox.tcl demo.  It demonstrates calls to FileDialog.