Why does the following work for Module
but not DynamicModule
?
Module[{test},
test = 0;
Column[{Button["Calc",
test = 0.1; Pause[1.0];
test = 0.25; Pause[1.0];
test = 0.5; Pause[1.0];
test = 0.75; Pause[1.0];
test = 0.9; Pause[1.0];
test = 1.0, Method -> "Queued"],
Row[{"Progress: ", ProgressIndicator[Dynamic[test]]}]}]]
DynamicModule[{test},
test = 0;
Column[{Button["Calc",
test = 0.1; Pause[1.0];
test = 0.25; Pause[1.0];
test = 0.5; Pause[1.0];
test = 0.75; Pause[1.0];
test = 0.9; Pause[1.0];
test = 1.0, Method -> "Queued"],
Row[{"Progress: ", ProgressIndicator[Dynamic[test]]}]}]]
If I have other reasons to need the module to be a DynamicModule
, how can I get this functionality to work?
Refresh
works. $\endgroup$