[wxPython-users] Initialization Files
Ralf Schönian
ralf at schoenian-online.de
Tue Oct 16 20:42:56 PDT 2007
Stef Mientki schrieb:
>
>
> Paulo Nuin wrote:
>> Hi Everyone
>>
>> I am wondering how is the best way in wxPython to manage
>> initialization files. Is there any module that would do that easily?
>>
> Well I don't know the answer (yet), so I'm curious to solutions too ;-)
> In other languages I save the settings on destruction of a form and
> load settings on the creation of a form
>
> Or do you mean, how to save / reload settings ?
> Well as a windows guy, I usually use ini-files (not with the extension
> "ini" !!),
> and the standard Python module is something like configparser, which
> sucks.
> A better solution is ConfigObj, which works quit nice.
> Coming from windows even this I find complicated, so I wrote a small
> wrapper,
> making it even more easy than in my previous language (Delphi).
>
> cheers,
> Stef Mientki
>
>
>> Sorry for the basic questions.
>>
>> Thanks in advance
>>
>> Paulo
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
>> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
>
>
Hi,
what is wrong with a config class?
class Config(object):
path = '/home/ralf'
databaseFile = 'english.db'
This one can be imported with
from config import Config
Why are you using the ConfigObj or ConfigParser modules? What is their
advantage?
Regards,
Ralf Schoenian
More information about the wxpython-users
mailing list