def make_calnoise(self):
    random.seed(self.calibration_noise)
    (w, h) = self.SIZE
    rawnoise = QImage(w, h, QImage.Format_Mono)
    for x in range(w):
        for y in range(h):
            rawnoise.setPixel(x, y, random.randint(0, 1))
    self.calnoise = self.pixelcode_2x2(rawnoise)
def make_calnoise(self):
    random.seed(self.calibration_noise)
    (w, h) = self.SIZE
    rawnoise = QImage(w, h, QImage.Format_Mono)
    for x in range(w):
        for y in range(h):
            rawnoise.setPixel(x, y, random.randint(0, 1))
    self.calnoise = self.pixelcode_2x2(rawnoise)