| Author |
Comment/Response |
Kevin
|
12/28/07 7:42pm
For the following block of code, why does moving the y slider reset the dynamic output. Because of the "TrackedSymbols :> {x}", I would expect only the x slider to update the output?
DynamicModule[{x, y},
Column[{
Slider[Dynamic[x]],
Slider[Dynamic[y]],
Dynamic[{x, y}, TrackedSymbols :> {x}]
}]
]
However, when I change the DynamicModule to a Module or remove it completely (like the following block of code), the y slider doesn't affect the dynamic output as I would expect. Can someone please explain this to me?
Column[{
Slider[Dynamic[x]],
Slider[Dynamic[y]],
Dynamic[{x, y}, TrackedSymbols :> {x}]
}]
URL: , |
|