예제 #1
0
파일: test.py 프로젝트: sunzu/vot.ar
def buffer_file_cmp(printer, file_name):
    current_data_code("EJ.01.01")
    mesa = Ubicacion.one(codigo="EJ.01.01.01.01")
    boleta = Seleccion(mesa)
    boleta.elegir_lista(Lista.one())
    img = boleta.a_imagen()
    img = img.output()

    img = img.transpose(Image.ROTATE_90)
    data = img.getdata()

    printer.load_buffer_compressed(data)
예제 #2
0
파일: test.py 프로젝트: Goblab/vot.ar
def buffer_file_cmp(printer, file_name):
    current_data_code("EJ.01.01")
    mesa = Ubicacion.one(codigo="EJ.01.01.01.01")
    boleta = Seleccion(mesa)
    boleta.elegir_lista(Lista.one())
    img = boleta.a_imagen()
    img = img.output()

    img = img.transpose(Image.ROTATE_90)
    data = img.getdata()

    printer.load_buffer_compressed(data)
예제 #3
0
파일: voto.py 프로젝트: jadulled/vot.ar
 def _precache_generacion_img(self):
     # Imagen dummy para importar lo relacionado a generar imagenes
     test_seleccion = Seleccion(self.sesion.mesa)
     test_seleccion.rellenar_de_blanco()
     test_seleccion.a_imagen(svg=True)
     del test_seleccion
예제 #4
0
파일: voto.py 프로젝트: sunzu/vot.ar
 def _precache_generacion_img(self):
     #Imagen dummy para importar lo relacionado a generar imagenes
     test_seleccion = Seleccion(self.sesion.mesa)
     test_seleccion.rellenar_de_blanco()
     test_seleccion.a_imagen(svg=True)
     del test_seleccion