Mercurial > hg > Feedworm
comparison PreferencesDialog.py @ 46:03358c113170
Better preferences handling: the GUI's responsibility is to convert the input from the event into a boolean value
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Sun, 16 May 2010 07:54:24 +0200 |
parents | be990ac6e478 |
children | db35ab7753f0 |
comparison
equal
deleted
inserted
replaced
45:0604e374c1d6 | 46:03358c113170 |
---|---|
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 self.preferences.setStartMaximized(change) | 20 if change: |
21 self.preferences.setStartMaximized(True) | |
22 else: | |
23 self.preferences.setStartMaximized(False) | |
21 | 24 |
22 def accept(self): | 25 def accept(self): |
23 self.session.commit() | 26 self.session.commit() |
24 QtGui.QDialog.accept(self) | 27 QtGui.QDialog.accept(self) |
25 | 28 |