'Setting scaled=True will cause the entire image to be displayed within the boundaries of the widget. This also greatly reduces the speed at which it will draw frames.'

def __init__(self, parent=None, scaled=False):

    QtGui.QWidget.__init__(self, parent=None)
    self.setSizePolicy(QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding))
    self.scaled = scaled
    self.opts = None
    self.image = None
