Mercurial > hg > Feedworm
comparison feedworm-gui.py @ 43:12ed8b5fa08c
first system preference: configure app to stat maximized.
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Fri, 14 May 2010 08:31:46 +0200 |
parents | 11bac653edfd |
children | b8bfd1bd6c55 |
comparison
equal
deleted
inserted
replaced
42:0c0d1760b737 | 43:12ed8b5fa08c |
---|---|
1 | 1 |
2 import Database | 2 import Database |
3 from MainWindow import MainWindow | 3 from MainWindow import MainWindow |
4 from Preferences import Preferences | |
4 from PyQt4 import QtGui | 5 from PyQt4 import QtGui |
5 import sys | 6 import sys |
6 import util | 7 import util |
7 | 8 |
8 if __name__ == '__main__': | 9 if __name__ == '__main__': |
9 util.configureLogging() | 10 util.configureLogging() |
10 session = Database.createSession() | 11 session = Database.createSession() |
11 | 12 |
12 app = QtGui.QApplication(sys.argv) | 13 app = QtGui.QApplication(sys.argv) |
13 mainWindow = MainWindow(session) | 14 mainWindow = MainWindow(session) |
14 mainWindow.showMaximized() | 15 |
16 maximized = Preferences(session).startMaximized() | |
17 if maximized: | |
18 mainWindow.showMaximized() | |
19 else: | |
20 mainWindow.show() | |
21 | |
15 sys.exit(app.exec_()) | 22 sys.exit(app.exec_()) |