aesthete-team team mailing list archive
-
aesthete-team team
-
Mailing list archive
-
Message #00059
Default plot preferences
Hi all,
I'm just looking at adding some default Glancer settings (show grid, x/y
min/max, that sort of thing). At first I followed the other preferences
like concise_property_notebook, but then how does glancer/Plot.py read
these? By importing the window object from the main program? Seems messy.
I see aobject.py has functions like get_preference and the like, but
these seem to be geared towards XML stuff. Ideally there would be a
global preferences db, so that I could do something like:
from prefs import pref_db
...
if pref_db(<pref_setting>) :
...
Is this already possible in some way? If not, is it worth having? I can
certainly try to create something that does this if needs be.
Thoughts?
Chris.
Follow ups