comparison 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
comparison
equal deleted inserted replaced
42:0c0d1760b737 43:12ed8b5fa08c
1
2 from Preference import Preference
3 import util
4
5 START_MAXIMIZED = "START_MAXIMIZED"
6
7 class Preferences(object):
8 def __init__(self, session):
9 self.session = session
10
11 def startMaximized(self):
12 value = Preference.valueForKey(START_MAXIMIZED, self.session)
13 if value is not None:
14 return util.str2bool(value)
15 else:
16 return False