I have a seperate script that calls this one… I don’t understand why my button click is not going into the corresponding function. I am quite new at this so if you do know the answer, could you explain it to me so that I can learn it. Answer Remove this line: self.windowWid = QWidget() and change layout = QGridLayout(self.windowWid)