def initUI(self): self.layout = QtGui.QGridLayout() self.setLayout(self.layout) button = QtGui.QPushButton("Render") self.layout.addWidget(button,1,0)