Prev: starpack icon mystery solved - tclkit.ico missing from tclkitsh-8.5.7-win32.upx.exe
Next: Announce: Runtime Library 3.0 Gestalt Items 1.1 and Hugelist 1.4,Tcl-Mode for XCode
From: MSEdit on 25 Oct 2009 14:27 On Oct 24, 3:42 pm, Bob Techentin <techentin.rob...(a)mayo.edu> wrote: > On Oct 22, 7:54 am, MSEdit <mse...(a)gmail.com> wrote: > > > Thanks Julian, > > > Your code does work but I still have problems with mine ! > > Martyn, > > I messed around with your code a bit, and figured out why it wasn't > working. There is a but in RBC. > > When you create vectors in a proc, RBC should create a local array > variable. But instead it is creating a global variable. So this code > -should- work. > > proc addTrace {graph} { > vector create xvec yvec > $graph create element newtrace -xdata xvec -ydata yvec > for {set i 0} {$i<10} {incr i} { > # this code is correct and should work > set xvec(++end) $i > set yvec(++end) $i > # this code is incorrect but does work with RBC 0.1 > set:: xvec(++end) $i > set ::yvec(++end) $i > } > > } > > (bug reports and maybe fixes to follow.) > Bob Bob, everything seems ok now I have several places where the -min/-max are changed and I was looking at the wrong one for the tests. You were right about the vectors and the global scope, This is also true for BLT so I do not see how my code worked before, very curious. Now if some kind soul could have a little peek at the update/Configure problem. Martyn
From: Bob Techentin on 25 Oct 2009 20:23 On Oct 25, 1:27 pm, MSEdit <mse...(a)gmail.com> wrote: > > You were right about the vectors and the global scope, This is also > true for BLT so I do not see how my code worked before, very curious. > I'm pretty sure that RBC is different from BLT. Since it was supposed to be a port, and RBC is incompatible, then it is a bug. (Not that I know how to fix it, yet.) Bob
From: jdc on 27 Oct 2009 05:24 > blt::PushZoom and blt::PopZoom both surround an [update] with [busy > hold $graph] and [busy release $graph]. I guess the busy could just > be removed, but there would likely be some bad behavior. Or replace those by [tk busy] ? Jos.
From: Bob Techentin on 27 Oct 2009 09:06 On Oct 27, 4:24 am, jdc <jos.decos...(a)gmail.com> wrote: > > blt::PushZoom and blt::PopZoom both surround an [update] with [busy > > hold $graph] and [busy release $graph]. I guess the busy could just > > be removed, but there would likely be some bad behavior. > > Or replace those by [tk busy] ? I suppose that would work for Tk 8.5+ I've lived in 8.4-land for so long, I forget all the goodies that I'm missing. :-} Bob
From: Donal K. Fellows on 27 Oct 2009 09:14
On 27 Oct, 13:06, Bob Techentin <techentin.rob...(a)mayo.edu> wrote: > I suppose that would work for Tk 8.5+ I've lived in 8.4-land for so > long, I forget all the goodies that I'm missing. :-} In this case, it's part of 8.6. Donal. |