The problem is not with Python but with PyQt4. You have the pushButtons connected to themselves, hence the recursion error.
From gui.txt:
Code:
QtCore.QObject.connect(self.applyButton, QtCore.SIGNAL(_fromUtf8("clicked()")), self.applyButton.click)
QtCore.QObject.connect(self.startButton, QtCore.SIGNAL(_fromUtf8("clicked()")), self.startButton.click)
QtCore.QObject.connect(self.exportButton, QtCore.SIGNAL(_fromUtf8("clicked()")), self.exportButton.click)
You need to remove those connections in Qt Designer.
Here is a simple example reproducing the error:
Code:
#!/usr/bin/python3
import sys
from PyQt4 import QtGui, QtCore
class mainWindow(QtGui.QMainWindow):
def __init__(self, parent = None):
super(mainWindow, self).__init__(parent)
self.pushButton = QtGui.QPushButton("Push Me", self)
QtCore.QObject.connect(self.pushButton, QtCore.SIGNAL("clicked()"), self.pushButton.click)
if __name__ == "__main__":
app = QtGui.QApplication(sys.argv)
win = mainWindow()
win.show()
app.exec_()