Re: [Twisted-Python] integrating a Qt interface with twisted, qt5, python 2.x

2016-06-19 Thread Clayton Daley
I believe your problem is this line: > sys.exit(app.exec_()) Two issues: - It looks like app.exec_() blocks (e.g. http://stackoverflow.com/questions/22289423/how-to-avoid-qt-app-exec-blocking-main-thread ) - When it unblocks, the program sys.exit() terminates ( https://docs.pytho

[Twisted-Python] integrating a Qt interface with twisted, qt5, python 2.x

2016-06-17 Thread steven meier
hi, why does the code below print "testing..." but not "123" 5 seconds after the application started? import sys from PyQt5 import QtWidgets from untitled import Ui_MainWindow #from webchat import get_main_page class Main(QtWidgets.QMainWindow): def __init__(self): QtWidgets.QMa