Help No Window Display

From: Razzel (logicon_at_zipcon.com)
Date: 01/22/05


Date: Sat, 22 Jan 2005 10:28:48 GMT

I want to display the background xy scales and axes, then produce a curve
which originates at the right margin and migrates leftward as the data
is accumulated.
The code has been tested and produces a fine graph when the data is not
captured and displayed in real time this way.
This code has been lightly modified and tested and indicates it is working.
The graph scales etc. do not display and the procedure which captures and
displays the data as a line plot shows it is functioning but there is no
curve displayed.
Frustrated, I created a similar code set below which also exhibits this
problem. Can someone point out to me the error of my ways, please.

#!/usr/bin/wish
canvas .c -width 330m -height 130m
pack .c

puts "TEST proc"
proc fun {} {
#while {1} {
.c create oval 50m 10m 60m 20m -fill red -tags {ball}
after 1000
.c delete ball
.c create oval 90m 50m 100m 60m -fill red -tags {ball}
after 1000
.c delete ball
.c create oval 50m 90m 60m 100m -fill red -tags {ball}
after 1000
.c delete ball
.c create oval 10m 50m 20m 60m -fill red -tags {ball}
after 1000
.c delete ball
#}
}

set b 5
puts "TEST b= $b"
.c create line 10 10 100 100 -width 3 -fill red -tags {dudu}

.c create line 100 10 10 100 -width 5 -fill blue -tags {dodo}
fun

The while loop was commented out in a vain attempt of remediation.
Initially the proc contained just the create line command tagged dodo
which never printed from the proc.
All that happens in the current configuration is the mainline code
executes and displays the crossing red and blue lines along with the
testing puts command output. I put the flashing balls in the proc but
they have never plotted.
I suspect I am violating a tcl/tk mandate which I have forgotten.

I'll appreciate any help as my week long efforts of testing have yielded
zilch.
Thanks,
Ron



Relevant Pages

  • Re: Spider-Man 2.6 up on Sterns site w/ changelog
    ... tournament before I bring it to Florida Expo next week anyway. ... Added instruction messages to the super hero background display ... Fixed green goblin wire color in coil table. ... The slingshot coils were being double-firing during ball search. ...
    (rec.games.pinball)
  • Re: How to suppress those messages [404] etc
    ... Though I suspect that your PROC is running the SELECT statement and the LIST ... DISPLAY VENDOR PRICE DETAILS ... so that people get a visual feedback that things are happening. ... John Marshall ...
    (comp.databases.pick)
  • Re: Nascar 3.40 rom update
    ... (Spanish release, checksum $E7FF) ... Made LOCK DIFFICULTY not reset R-A-C-E lamps at the start of each ball ... DISPLAY Release Version 3.02 ...
    (rec.games.pinball)
  • Re: gamma correction on screens
    ... reprenseted by a logaritmic curve which slope is 0.45. ... which is a simplified model for how the luminance of a display ... varies with the input signal level. ...
    (comp.sys.ibm.pc.hardware.video)
  • Re: A question for those with MPU-200 knowledge
    ... Can a 5101, or some other chip, cause odd scoring ... Also, the score is actually held for display in the 6810 ram, so you might have an issue with the 6810. ... The "ball in play" counter displays the first ball as ball ...
    (rec.games.pinball)