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)
def abrir_cajon(self, *args): try: printer = Network(ip_caja, timeout=10) printer.cashdraw(2) except Exception as e: print("[ERROR ] %s" % e)
def abrir_cajon(self, *args): try: printer = Network(ip_caja, timeout=10) printer.cashdraw(2) except: print("Impresora no conectada")