Updates for PyQt5

Still have a bug when exiting, but now executes.