Help No Window Display
From: Razzel (logicon_at_zipcon.com)
Date: 01/22/05
- Next message: Kevin Kenny: "Re: TclSOAP - Memory Leak! (URGENT) Problem Persists..."
- Previous message: Bruce Hartweg: "Re: Need help with if statement syntax"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Kevin Kenny: "Re: TclSOAP - Memory Leak! (URGENT) Problem Persists..."
- Previous message: Bruce Hartweg: "Re: Need help with if statement syntax"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|