Mercurial > hg > Feedworm
diff 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Preferences.py Fri May 14 08:31:46 2010 +0200 @@ -0,0 +1,16 @@ + +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