annotate feedworm-gui.py @ 37:22214d79ed41

database URL must be given as commandline argument now, no need for creating complicated config files. Add a menu entry for opening the selected article in browser.
author Dirk Olmes <dirk@xanthippe.ping.de>
date Fri, 14 May 2010 06:16:05 +0200
parents 74b8c9a9d5de
children 11bac653edfd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14
42a225be7e56 first version of the GUI
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
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
42a225be7e56 first version of the GUI
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
4 from PyQt4 import QtGui
42a225be7e56 first version of the GUI
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
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
42a225be7e56 first version of the GUI
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
7
42a225be7e56 first version of the GUI
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
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
42a225be7e56 first version of the GUI
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
11
42a225be7e56 first version of the GUI
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
12 app = QtGui.QApplication(sys.argv)
24
6b5ceffabe49 MainWindowController -> MainWindow
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 14
diff changeset
13 mainWindow = MainWindow(session)
6b5ceffabe49 MainWindowController -> MainWindow
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 14
diff changeset
14 mainWindow.show()
14
42a225be7e56 first version of the GUI
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
15 sys.exit(app.exec_())