def main(args): qapp=QApplication(args) kuraapp.initApp(str(guiConf.username), str(guiConf.database), str(guiConf.password), str(guiConf.hostname)) kuraapp.initCurrentEnvironment(1, 1, 1) app = kuraapp.app mainwin=GuiTable(None, None, None) mainwin.show() mainwin.refresh(app.createObject('lng_lex', fields={})) qapp.connect(qapp, SIGNAL('lastWindowClosed()'), qapp, SLOT('quit()')) qapp.setFont(QFont(guiConf.textfontfamily, guiConf.textfontsize), True) qapp.exec_loop()