Undone clumsy code

I accidentally changed some working pyqtSignal() and pyqtSlot() bits
with SIGNAL and SLOT trying to lazily revert an earlier change. I've
added QApplication initialisation so I don't run into QWidget init
problems later.