Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created November 30, 2022 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/2d4dbbc3610abda97980499107d17b2c to your computer and use it in GitHub Desktop.
Save parzibyte/2d4dbbc3610abda97980499107d17b2c to your computer and use it in GitHub Desktop.
def __init__(self, ruta=URL_PLUGIN_POR_DEFECTO, serial=""):
self.operaciones = []
self.ruta = ruta
self.serial = serial
def agregar_operacion(self, nombre, argumentos):
self.operaciones.append({
"nombre": nombre,
"argumentos": argumentos,
})
def CargarImagenLocalEImprimir(self, ruta: str, tamaño: float, maximoAncho: float):
return self.agregar_operacion("CargarImagenLocalEImprimir", [ruta, tamaño, maximoAncho])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment