Logo Search packages:      
Sourcecode: rapid-photo-downloader version File versions  Download package

rapid::prefs::Preferences Class Reference

Inherited by rapid::rapid::RapidPreferences.

List of all members.

Detailed Description

Persistent preferences object.

import prefs
defaults = {"spacing": prefs.Value(prefs.INT, 4),
            "font": prefs.Value(prefs.STRING, "monospace") }
p = prefs.Prefs("myapp", defaults)
print p.font
p.font = "sans" # written to gconf too
p2 = prefs.Prefs("myapp", defaults)
print p.font # prints "sans"

Definition at line 104 of file prefs.py.

Public Member Functions

def __getattr__
def __init__
def __setattr__
def dump
def get_default
def notify_add
def reset

Private Member Functions

def _on_preference_changed

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index