Mercurial > hg > Feedworm
diff 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 |
line wrap: on
line diff
--- a/feedworm-gui.py Fri May 14 08:08:17 2010 +0200 +++ b/feedworm-gui.py Fri May 14 08:31:46 2010 +0200 @@ -1,6 +1,7 @@ import Database from MainWindow import MainWindow +from Preferences import Preferences from PyQt4 import QtGui import sys import util @@ -11,5 +12,11 @@ app = QtGui.QApplication(sys.argv) mainWindow = MainWindow(session) - mainWindow.showMaximized() + + maximized = Preferences(session).startMaximized() + if maximized: + mainWindow.showMaximized() + else: + mainWindow.show() + sys.exit(app.exec_())