mirror of
				https://github.com/python-escpos/python-escpos
				synced 2025-10-23 09:30:00 +00:00 
			
		
		
		
	Update printer.py
without the call to open function, the printer isn't initialize to print, i tested on a generic and epson physical printers.
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							27b7ae8629
						
					
				
				
					commit
					15c18f225e
				
			@@ -364,6 +364,7 @@ if _WIN32PRINT:
 | 
			
		||||
            else:
 | 
			
		||||
                self.printer_name = win32print.GetDefaultPrinter()
 | 
			
		||||
            self.hPrinter = None
 | 
			
		||||
            self.open()
 | 
			
		||||
 | 
			
		||||
        def open(self, job_name="python-escpos"):
 | 
			
		||||
            if self.printer_name is None:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user