Mercurial > hg > Feedworm
view Preferences.py @ 43:12ed8b5fa08c
first system preference: configure app to stat maximized.
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Fri, 14 May 2010 08:31:46 +0200 |
parents | |
children | be990ac6e478 |
line wrap: on
line source
from Preference import Preference import util START_MAXIMIZED = "START_MAXIMIZED" class Preferences(object): def __init__(self, session): self.session = session def startMaximized(self): value = Preference.valueForKey(START_MAXIMIZED, self.session) if value is not None: return util.str2bool(value) else: return False