[PyKDE] QSettings
Andreas Pakulat
apaku at gmx.de
Sat Mar 11 16:38:30 GMT 2006
On 11.03.06 16:55:25, Fabian Steiner wrote:
> How can I solve this problem? I thought of passing the current Config class
> instance to one of the Dialog constructor's arguments. Is there any better
> solution?
Only create 1 instance of the class. Not sure if this works in python
but I would start like this:
Config.py:
configobj = Prefs()
class Prefs:
...
then you can always use
from Config import configobj
and work with configobj.
Andreas
--
You're growing out of some of your problems, but there are others that
you're growing into.
More information about the PyQt
mailing list