comparison feedworm-gui.py @ 36:74b8c9a9d5de

adjust the gui starter to the new database initialization
author Dirk Olmes <dirk@xanthippe.ping.de>
date Wed, 05 May 2010 03:10:15 +0200
parents 6b5ceffabe49
children 11bac653edfd
comparison
equal deleted inserted replaced
35:aaec263f07ca 36:74b8c9a9d5de
1 1
2 import Database
2 from MainWindow import MainWindow 3 from MainWindow import MainWindow
3 from PyQt4 import QtGui 4 from PyQt4 import QtGui
4 import sys 5 import sys
5 from util import configureLogging, createSession 6 import util
6 7
7 if __name__ == '__main__': 8 if __name__ == '__main__':
8 configureLogging() 9 util.configureLogging()
9 session = createSession() 10 session = Database.createSession()
10 11
11 app = QtGui.QApplication(sys.argv) 12 app = QtGui.QApplication(sys.argv)
12 mainWindow = MainWindow(session) 13 mainWindow = MainWindow(session)
13 mainWindow.show() 14 mainWindow.show()
14 sys.exit(app.exec_()) 15 sys.exit(app.exec_())