Liking Page a lot, but there is at least on point of annoyance. Page must have some "memory" of text vars that don't get wiped/updated when they should.
Set a label, called coins, and set its text to Quarters and also create a text variable, coins_txt_var ...generate page file, run, all is well!!
A few days later decide you want to start with dimes in the editor. reopen the project
change text to Dimes....**.but nothing happens, the editor still says Quarters ..the editing has no effect.
If you clear the var field, now typing Dimes does have effect, but then putting back coins_txt_var makies it go back to quarters, overwriting edits!!!
Painful Workaround:
open page project, delete the variables in question
edit corresponding text fields to desired updates
save page and close it all up/exit
reopen page & project
reenter the variable names (now the edits don't get overwritten)
save all & exit
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
That IS a problem with PAGE, but the workaround isn't as bad as it seems.
Once you create a text var, the label is "fixed" in PAGE. That's not really PAGE, it is Tk.
So in your scenario, when you wish to change things around. First, delete the Text var, then change the Label, do a quick save of the TCL file. Enter your text var again, then save again.
Of course, you can always change the text via code when the program is running either by setting the text var to "Dimes" using the _textvar.set("Dimes") method or you can do it by using the config method _w1.LabelCoins.config(text="Dimes").
I really wish there was an easier way, but that's Tk.
Greg
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2022-06-30
Unfortunately I found this was not the case....in Linux, i had to exit page completely to make the edits stick
...remove variable lblTEST_var
...edit the lblTEST text (updates with new stuff)
...do Page File Save
...add back lblTEST_var .....edits immediately show as undone (reverts)
Only by
...remove variable lblTEST_var
...edit the lblTEST text (updates with new stuff)
...do Page File Save
CLOSE PAGE
OPEN PAGE
...add back lblTEST_var
EDITS REMAIN!!!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Liking Page a lot, but there is at least on point of annoyance. Page must have some "memory" of text vars that don't get wiped/updated when they should.
Set a label, called coins, and set its text to Quarters and also create a text variable, coins_txt_var ...generate page file, run, all is well!!
A few days later decide you want to start with dimes in the editor. reopen the project
change text to Dimes....**.but nothing happens, the editor still says Quarters ..the editing has no effect.
If you clear the var field, now typing Dimes does have effect, but then putting back coins_txt_var makies it go back to quarters, overwriting edits!!!
Painful Workaround:
open page project, delete the variables in question
edit corresponding text fields to desired updates
save page and close it all up/exit
reopen page & project
reenter the variable names (now the edits don't get overwritten)
save all & exit
That IS a problem with PAGE, but the workaround isn't as bad as it seems.
Once you create a text var, the label is "fixed" in PAGE. That's not really PAGE, it is Tk.
So in your scenario, when you wish to change things around. First, delete the Text var, then change the Label, do a quick save of the TCL file. Enter your text var again, then save again.
Of course, you can always change the text via code when the program is running either by setting the text var to "Dimes" using the _textvar.set("Dimes") method or you can do it by using the config method _w1.LabelCoins.config(text="Dimes").
I really wish there was an easier way, but that's Tk.
Greg
Unfortunately I found this was not the case....in Linux, i had to exit page completely to make the edits stick
...remove variable lblTEST_var
...edit the lblTEST text (updates with new stuff)
...do Page File Save
...add back lblTEST_var .....edits immediately show as undone (reverts)
Only by
...remove variable lblTEST_var
...edit the lblTEST text (updates with new stuff)
...do Page File Save
CLOSE PAGE
OPEN PAGE
...add back lblTEST_var
EDITS REMAIN!!!