diff PreferencesDialog.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 0c0d1760b737
children be990ac6e478
line wrap: on
line diff
--- a/PreferencesDialog.py	Fri May 14 08:08:17 2010 +0200
+++ b/PreferencesDialog.py	Fri May 14 08:31:46 2010 +0200
@@ -1,4 +1,5 @@
 
+from Preferences import Preferences
 from PyQt4 import QtGui
 from Ui_Preferences import Ui_Preferences
 
@@ -6,13 +7,14 @@
     def __init__(self, session=None):
         QtGui.QWidget.__init__(self, None)
         self.session = session
+        self.preferences = Preferences(session)
         self.ui = Ui_Preferences()
         self.ui.setupUi(self)
         self.fillUi()
         
     def fillUi(self):
-        #self.ui.startMaximized.setChecked()
-        pass
+        maximized = self.preferences.startMaximized()
+        self.ui.startMaximized.setChecked(maximized)
 
     def startMaximizedChanged(self, change):
         print("start maximized: " + str(change))