def updateSize():
    global ui, vb
    frames = ui.framesSpin.value()
    width = ui.widthSpin.value()
    height = ui.heightSpin.value()
    dtype = xp.dtype(str(ui.dtypeCombo.currentText()))
    rgb = (3 if ui.rgbCheck.isChecked() else 1)
    ui.sizeLabel.setText(('%d MB' % (((((frames * width) * height) * rgb) * dtype.itemsize) / 1000000.0)))
    vb.setRange(QtCore.QRectF(0, 0, width, height))
def updateSize():
    global ui, vb
    frames = ui.framesSpin.value()
    width = ui.widthSpin.value()
    height = ui.heightSpin.value()
    dtype = xp.dtype(str(ui.dtypeCombo.currentText()))
    rgb = (3 if ui.rgbCheck.isChecked() else 1)
    ui.sizeLabel.setText(('%d MB' % (((((frames * width) * height) * rgb) * dtype.itemsize) / 1000000.0)))
    vb.setRange(QtCore.QRectF(0, 0, width, height))