summaryrefslogtreecommitdiffstats
path: root/library/demos/pendulum.tcl
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@noemail.net>2009-04-02 08:27:46 (GMT)
committerpatthoyts <patthoyts@noemail.net>2009-04-02 08:27:46 (GMT)
commit1e565b63e2ee48506b7fe6e0a15a45ded35e81eb (patch)
treee6f009cb86f2b521ff8c0f779d07926faa71ca22 /library/demos/pendulum.tcl
parent75b15745e1d7f7af4d7f0c06a023e3568e98b865 (diff)
downloadtk-1e565b63e2ee48506b7fe6e0a15a45ded35e81eb.zip
tk-1e565b63e2ee48506b7fe6e0a15a45ded35e81eb.tar.gz
tk-1e565b63e2ee48506b7fe6e0a15a45ded35e81eb.tar.bz2
Minor fixes to demos. In the pendulum demo make use of unicode for the
axis labels and in the knightstour demo on X11 we cannot rely on anything being present for the knight glyph so use a polygon instead. FossilOrigin-Name: 19020018567607a4b9780afa29281594a595e5cc
Diffstat (limited to 'library/demos/pendulum.tcl')
-rw-r--r--library/demos/pendulum.tcl8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/demos/pendulum.tcl b/library/demos/pendulum.tcl
index b70cbf1..8512d24 100644
--- a/library/demos/pendulum.tcl
+++ b/library/demos/pendulum.tcl
@@ -3,7 +3,7 @@
# This demonstration illustrates how Tcl/Tk can be used to construct
# simulations of physical systems.
#
-# RCS: @(#) $Id: pendulum.tcl,v 1.3 2006/10/17 05:52:40 das Exp $
+# RCS: @(#) $Id: pendulum.tcl,v 1.4 2009/04/02 08:27:51 patthoyts Exp $
if {![info exists widgetDemo]} {
error "This script should be run from the \"widget\" demo."
@@ -51,9 +51,9 @@ for {set i 90} {$i>=0} {incr i -10} {
# Coordinates of these items don't matter; they will be set properly below
$w.k create line 0 0 1 1 -smooth true -tags graph$i -fill grey$i
}
-# FIXME: UNICODE labels
-$w.k create text 0 0 -anchor ne -text "q" -font {Symbol 8} -tags label_theta
-$w.k create text 0 0 -anchor ne -text "dq" -font {Symbol 8} -tags label_dtheta
+
+$w.k create text 0 0 -anchor ne -text "\u03b8" -tags label_theta
+$w.k create text 0 0 -anchor ne -text "\u03b4\u03b8" -tags label_dtheta
pack $w.k -in $w.p.l2 -fill both -expand true
# Initialize some variables