Mercurial > hg > Feedworm
annotate 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 |
rev | line source |
---|---|
40 | 1 |
2 from PyQt4 import QtGui | |
3 from Ui_Preferences import Ui_Preferences | |
4 | |
5 class Preferences(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 | |
12 def startMaximizedChanged(self, change): | |
13 print("start maximized: " + str(change)) | |
41
9fa1e33b67da
use Qt resources for window icons
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
40
diff
changeset
|
14 |
9fa1e33b67da
use Qt resources for window icons
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
40
diff
changeset
|
15 def accept(self): |
9fa1e33b67da
use Qt resources for window icons
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
40
diff
changeset
|
16 # TODO save the session |
9fa1e33b67da
use Qt resources for window icons
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
40
diff
changeset
|
17 QtGui.QDialog.accept(self) |
9fa1e33b67da
use Qt resources for window icons
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
40
diff
changeset
|
18 |
9fa1e33b67da
use Qt resources for window icons
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
40
diff
changeset
|
19 def reject(self): |
9fa1e33b67da
use Qt resources for window icons
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
40
diff
changeset
|
20 # TODO revert the session |
9fa1e33b67da
use Qt resources for window icons
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
40
diff
changeset
|
21 QtGui.QDialog.reject(self) |
9fa1e33b67da
use Qt resources for window icons
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
40
diff
changeset
|
22 |
9fa1e33b67da
use Qt resources for window icons
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
40
diff
changeset
|
23 |