annotate feedworm-gui.py @ 59:daa2731967fe

Marking all articles in a feed as read doesn't toggle any more ... it marks all articles as read.
author Dirk Olmes <dirk@xanthippe.ping.de>
date Fri, 23 Jul 2010 17:29:22 +0200
parents 12ed8b5fa08c
children b8bfd1bd6c55
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
43
12ed8b5fa08c first system preference: configure app to stat maximized.
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 38
diff changeset
4 from Preferences import Preferences
14
42a225be7e56 first version of the GUI
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
5 from PyQt4 import QtGui
42a225be7e56 first version of the GUI
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
6 import sys
36
74b8c9a9d5de adjust the gui starter to the new database initialization
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 24
diff changeset
7 import util
14
42a225be7e56 first version of the GUI
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
8
42a225be7e56 first version of the GUI
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
9 if __name__ == '__main__':
36
74b8c9a9d5de adjust the gui starter to the new database initialization
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 24
diff changeset
10 util.configureLogging()
74b8c9a9d5de adjust the gui starter to the new database initialization
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 24
diff changeset
11 session = Database.createSession()
14
42a225be7e56 first version of the GUI
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
12
42a225be7e56 first version of the GUI
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
13 app = QtGui.QApplication(sys.argv)
24
6b5ceffabe49 MainWindowController -> MainWindow
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 14
diff changeset
14 mainWindow = MainWindow(session)
43
12ed8b5fa08c first system preference: configure app to stat maximized.
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 38
diff changeset
15
12ed8b5fa08c first system preference: configure app to stat maximized.
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 38
diff changeset
16 maximized = Preferences(session).startMaximized()
12ed8b5fa08c first system preference: configure app to stat maximized.
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 38
diff changeset
17 if maximized:
12ed8b5fa08c first system preference: configure app to stat maximized.
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 38
diff changeset
18 mainWindow.showMaximized()
12ed8b5fa08c first system preference: configure app to stat maximized.
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 38
diff changeset
19 else:
12ed8b5fa08c first system preference: configure app to stat maximized.
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 38
diff changeset
20 mainWindow.show()
12ed8b5fa08c first system preference: configure app to stat maximized.
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 38
diff changeset
21
14
42a225be7e56 first version of the GUI
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
22 sys.exit(app.exec_())