You should really try that Google thing. This is for PyQt4; PyQt5 supports the new style of signal / slot connections as well as the old style.