position = None
size = (550, 400)
splitPosition = 210
22hn wrote:I've made a first version of a plugin called pVar. (persistent variables)
Works like this:
You can set a variable in two ways.
* Use the action SetGlobalsVar and enter your variable name and value
* In a python script, use eg.plugins.pVar.SetGlobalsVar('varname', value)
This will set eg.globals.varname = value and then save the var/value to yourconfigname.pvar
The next time you start EG, all variables will be restored to it's previous value.
It also checks for obsolete variables (once stored to file but no longer used in your config), and remove those from the pvar file automatically.
Livin wrote:I suggest an option for non-persistence on a per variable basis. I can foresee the need to have some variables clear when the session ends.
Users browsing this forum: No registered users and 0 guests