Example #1
0
    def abrir_cajon(self, *args):
        try:
            if self.tipo == "Network":
                printer = Network(self.ip_caja, timeout=1)
            if self.tipo == "Usb":
                printer = Usb(*self.usb)
            if self.tipo == "File":
                printer = File(self.url)

            printer.cashdraw(2)
        except Exception as e:
            print("[ERROR  ] %s" % e)
Example #2
0
 def abrir_cajon(self, *args):
     try:
         printer = Network(ip_caja, timeout=10)
         printer.cashdraw(2)
     except Exception as e:
         print("[ERROR  ]  %s" % e)
Example #3
0
 def abrir_cajon(self, *args):
     try:
         printer = Network(ip_caja, timeout=10)
         printer.cashdraw(2)
     except:
         print("Impresora no conectada")