def __init__(self, width, height, fps, parent=None): super(MainWindow,self).__init__(parent) self.map = Bootstrap.ImageWidget(width, height, fps) hbox = QtGui.QHBoxLayout() hbox.addWidget(self.map) self.setLayout(hbox)