comparison PreferencesDialog.py @ 42:0c0d1760b737

Rename Preferences to PreferencesDialog
author Dirk Olmes <dirk@xanthippe.ping.de>
date Fri, 14 May 2010 08:08:17 +0200
parents Preferences.py@9fa1e33b67da
children 12ed8b5fa08c
comparison
equal deleted inserted replaced
41:9fa1e33b67da 42:0c0d1760b737
1
2 from PyQt4 import QtGui
3 from Ui_Preferences import Ui_Preferences
4
5 class PreferencesDialog(QtGui.QDialog):
6 def __init__(self, session=None):
7 QtGui.QWidget.__init__(self, None)
8 self.session = session
9 self.ui = Ui_Preferences()
10 self.ui.setupUi(self)
11 self.fillUi()
12
13 def fillUi(self):
14 #self.ui.startMaximized.setChecked()
15 pass
16
17 def startMaximizedChanged(self, change):
18 print("start maximized: " + str(change))
19
20 def accept(self):
21 # TODO save the session
22 QtGui.QDialog.accept(self)
23
24 def reject(self):
25 # TODO revert the session
26 QtGui.QDialog.reject(self)
27
28