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
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