Mercurial > hg > Feedworm
view 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 source
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)