Menu

#20 Global values messed up for close/openTheme

open
nobody
None
5
2004-11-12
2004-11-12
No

Assume that you open a theme.
A global X is initialized to 0 (outside any def)
Do something that sets X = 1 in the theme in a def().
Then close that theme .
Then open the theme again.

You will now find that the theme's python code for
initializing X=0 seems to be missed out.

X is still = 1 !!!

If the theme is reloaded, then the globals seems to be
correctly initialized.

Discussion


Log in to post a comment.