Mercurial > hg > Feedworm
annotate feedworm-gui.py @ 39:0c2578196643
Disable the article menu by default, enable it when the first article is selected
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Fri, 14 May 2010 06:48:48 +0200 |
parents | 11bac653edfd |
children | 12ed8b5fa08c |
rev | line source |
---|---|
14 | 1 |
36
74b8c9a9d5de
adjust the gui starter to the new database initialization
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
24
diff
changeset
|
2 import Database |
24
6b5ceffabe49
MainWindowController -> MainWindow
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
14
diff
changeset
|
3 from MainWindow import MainWindow |
14 | 4 from PyQt4 import QtGui |
5 import sys | |
36
74b8c9a9d5de
adjust the gui starter to the new database initialization
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
24
diff
changeset
|
6 import util |
14 | 7 |
8 if __name__ == '__main__': | |
36
74b8c9a9d5de
adjust the gui starter to the new database initialization
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
24
diff
changeset
|
9 util.configureLogging() |
74b8c9a9d5de
adjust the gui starter to the new database initialization
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
24
diff
changeset
|
10 session = Database.createSession() |
14 | 11 |
12 app = QtGui.QApplication(sys.argv) | |
24
6b5ceffabe49
MainWindowController -> MainWindow
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
14
diff
changeset
|
13 mainWindow = MainWindow(session) |
38
11bac653edfd
when displaying the window, maximize it
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
36
diff
changeset
|
14 mainWindow.showMaximized() |
14 | 15 sys.exit(app.exec_()) |