From 996b3fd3326ad53340f39c51395aa89144524988 Mon Sep 17 00:00:00 2001 From: Patrick Kanzler Date: Thu, 11 Aug 2016 11:25:40 +0200 Subject: [PATCH] DOC fix demo-code in README.rst fixes #159 --- README.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.rst b/README.rst index 72e21bd..e79b279 100644 --- a/README.rst +++ b/README.rst @@ -54,14 +54,14 @@ The basic usage is: .. code:: python - from escpos import * + from escpos.printer import Usb """ Seiko Epson Corp. Receipt Printer M129 Definitions (EPSON TM-T88IV) """ - Epson = escpos.Escpos(0x04b8,0x0202,0) - Epson.text("Hello World\n") - Epson.image("logo.gif") - Epson.barcode('1324354657687','EAN13',64,2,'','') - Epson.cut() + p = Usb(0x04b8,0x0202,0) + p.text("Hello World\n") + p.image("logo.gif") + p.barcode('1324354657687','EAN13',64,2,'','') + p.cut() The full project-documentation is available on `Read the Docs `_.