I like the Config option, and that's what I ended up using for this particular problem. However, unless I'm missing something, this solution has the limitation of only storing and fetching string objects.
Using your "make a member of wx.App"-idea is good in that it lets you pass around any arbitrary object (although I suppose Config could do that too if you involved cPickle).
I'm gonna write both methods down in my `lil notebook, though, because they both did just what this problem required.
From: Henning.Ramm@mediapro-gmbh.de
[mailto:Henning.Ramm@mediapro-gmbh.de]
Sent: Thursday, June 30, 2005 4:49 PM
To: wxPython-users@lists.wxwidgets.org
Subject: RE: [wxPython-users] Using "preferences">Maybe I misunderstand your goals, but this sounds like a job
>for wx.Config()Oh, I didn't know that, looks good (and has more power than
my solution);
BTW there's also Python standard 'ConfigParser' module, but that is
limited to INI style config files.As always: there are a lot of solutions around, you must only
find them - and decide which one to use.
see also:
ActiveState Community - Boosting coder and team productivity with ready-to-use open source languages and tools.
ction=PYTHONCKBK&type=Subsection
···
-----Original Message-----
Best regards,
Henning Hraban Ramm
Südkurier Medienhaus / MediaPro
Support/Admin/Development Dept.---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org