Comments (3)
Adrian
Any chance of you getting to this one?
from loon.
As for invalid command name "0"
for uplevel #0 [$activewidget scaleto world]"
, it is pretty clear:
the method "scaleto" can return 0, at least I found correct method in
The commit as well as return 0
is not an issue directly, but it looks like here and there are some code pieces with a bit confusing basic Tcl handling, for example:
I can provide a PR fixing that...
Command uplevel #0 cmd
processing the command cmd
at top-level,
but in case of uplevel #0 [cmd]
, Tcl would firstly execute cmd
at current level and then the result (returned by this command) at top-level.
If command returns empty value (or does not return something at all), uplevel #0 [cmd]
is comparable with uplevel #0 {}
, what simply does nothing.
There are 3 "solutions" depending on expected behavior:
- either one should rewrite it as
uplevel #0 [list cmd arg1 ... argN]
to force execution of cmd at top-level; - or to relocate it to event like
after 0 [list cmd arg1 ... argN]
to execute it retarded (as event, at top-level too) - or even to remove
uplevel #0 [
at all, socmd arg1 ... argN
only, if execution in the current level is allowed (because doing the job all the time).
For example uplevel #0 [update idletasks]
is the same as update idletasks
(variant 3), because update always executes pending events at top-level and always returns nothing, so uplevel #0 {}
is simply called after an update (and doing really nothing there).
from loon.
thanks @sebres. @rwoldford these issues are fixed now. Please let me know if you still find some issues with switching graphs.
from loon.
Related Issues (20)
- Cran Documentation Gone HOT 4
- Highlight Color is pink HOT 1
- Four by Four Grid with Built-in Inspector
- Inspectors Source Code
- Can you do a 3d plot in tcl tk? HOT 8
- 2x2 Grid, with 3 plots and one interactive inspector HOT 1
- TCL 1. selectBy error message problem narrowed down.
- TCL 2. closing the inspector
- tcltk dependency for loon HOT 3
- Missing argument `showArea` in `l_glyph_add_pointrange` documentation HOT 1
- Missing argument `linewidth` in `l_glyph_add_polygon` documentation
- Invalid domain for l_serialaxes HOT 1
- Cannot plot a singleton point with plot in Tcl HOT 1
- l_layer_printTree breaking IO model?
- CTRL-P printing issues
- upgrading Xquartz breaks loon package HOT 3
- Tcl package version shows as 1.2.3 in 1.3.8 download HOT 3
- polygon glyph
- Partial argument match of 'field' to 'fields' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loon.