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)
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
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