Mercurial > hg > Feedworm
view Preferences.py @ 41:9fa1e33b67da
use Qt resources for window icons
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Fri, 14 May 2010 08:04:54 +0200 |
parents | c858aab71e5b |
children |
line wrap: on
line source
from PyQt4 import QtGui from Ui_Preferences import Ui_Preferences class Preferences(QtGui.QDialog): def __init__(self, session=None): QtGui.QWidget.__init__(self, None) self.session = session self.ui = Ui_Preferences() self.ui.setupUi(self) 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)