Merge pull request #462 from AlejandroJaez/patch-1

add call to self.open() to get physical printer works.
This commit is contained in:
Patrick Kanzler 2021-10-30 17:57:35 +02:00 committed by GitHub
commit 1e3024eaa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -364,6 +364,7 @@ if _WIN32PRINT:
else: else:
self.printer_name = win32print.GetDefaultPrinter() self.printer_name = win32print.GetDefaultPrinter()
self.hPrinter = None self.hPrinter = None
self.open()
def open(self, job_name="python-escpos"): def open(self, job_name="python-escpos"):
if self.printer_name is None: if self.printer_name is None: