comparison PreferencesDialog.py @ 44:be990ac6e478

saving the preference "start maximized" from GUI implemented
author Dirk Olmes <dirk@xanthippe.ping.de>
date Fri, 14 May 2010 15:02:15 +0200
parents 12ed8b5fa08c
children 03358c113170
comparison
equal deleted inserted replaced
43:12ed8b5fa08c 44:be990ac6e478
15 def fillUi(self): 15 def fillUi(self):
16 maximized = self.preferences.startMaximized() 16 maximized = self.preferences.startMaximized()
17 self.ui.startMaximized.setChecked(maximized) 17 self.ui.startMaximized.setChecked(maximized)
18 18
19 def startMaximizedChanged(self, change): 19 def startMaximizedChanged(self, change):
20 print("start maximized: " + str(change)) 20 self.preferences.setStartMaximized(change)
21 21
22 def accept(self): 22 def accept(self):
23 # TODO save the session 23 self.session.commit()
24 QtGui.QDialog.accept(self) 24 QtGui.QDialog.accept(self)
25 25
26 def reject(self): 26 def reject(self):
27 # TODO revert the session 27 self.session.rollback()
28 QtGui.QDialog.reject(self) 28 QtGui.QDialog.reject(self)
29 29
30 30