As shown in the example I just posted the variable $c_speed[0] in the Entry widget doesn't update when the "split" version of load file routine runs, but it *does* update when the sscanf version runs. The entry box itself works.
The whole application is 500 lines so I don't want to post that here.
| [reply] |
| [reply] |
If I do a print in the load subroutine I see the expected values from the file.
But with the validation calls in the widget commented out and the actual validation subroutine also commented out the displayed value in the widget does NOT change when I do the load. even though I can use the mouse/keyboard to change it doing input to the widget.
However, I've just discovered that although the *displayed* value in the Entry widget does *not* change when I do the load from file, the actual *variable* must have changed because the result of a calculation using it *does* change.
Also even though I can use the mouse/keyboard to change the displayed value doing input to the widget, it isn't getting into the variable because the calculation result does not change.
It's like doing the split alters the storage location of the variable array somehow and the widget doesn't get told.
| [reply] |