Quick port to PyQt5
debug