view feedworm-gui.py @ 62:abc0516a1c0c

FeedEntry provides a static method for creating new entries: better modularization and support for working with the class in interactive mode. FeedUpdater's normalize method is a module function now, again for ease of use in interactive scenarios
author dirk@xanthippe.ping.de
date Wed, 28 Jul 2010 20:30:34 +0200
parents 12ed8b5fa08c
children b8bfd1bd6c55
line wrap: on
line source


import Database
from MainWindow import MainWindow
from Preferences import Preferences
from PyQt4 import QtGui
import sys
import util

if __name__ == '__main__':
    util.configureLogging()
    session = Database.createSession()
    
    app = QtGui.QApplication(sys.argv)
    mainWindow = MainWindow(session)
    
    maximized = Preferences(session).startMaximized()
    if maximized:
        mainWindow.showMaximized()
    else:
        mainWindow.show()

    sys.exit(app.exec_())