Setting up stateChanged signal in QStackedWidget, pyqt

I have an example of QStacked Widget code from internet, which generates its own layout for each child (below) import sys from PyQt4.QtCore import * from PyQt4.QtGui import * class stackedExample(…