Mercurial > hg > Feedworm
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PreferencesDialog.py Fri May 14 08:08:17 2010 +0200 @@ -0,0 +1,28 @@ + +from PyQt4 import QtGui +from Ui_Preferences import Ui_Preferences + +class PreferencesDialog(QtGui.QDialog): + def __init__(self, session=None): + QtGui.QWidget.__init__(self, None) + self.session = session + self.ui = Ui_Preferences() + self.ui.setupUi(self) + self.fillUi() + + def fillUi(self): + #self.ui.startMaximized.setChecked() + pass + + def startMaximizedChanged(self, change): + print("start maximized: " + str(change)) + + def accept(self): + # TODO save the session + QtGui.QDialog.accept(self) + + def reject(self): + # TODO revert the session + QtGui.QDialog.reject(self) + + \ No newline at end of file