From dc08792e725ceae58abdb5cc622e09f1b09ddff5 Mon Sep 17 00:00:00 2001 From: akeonly Date: Sat, 11 May 2019 18:33:33 +0700 Subject: [PATCH 1/3] Update README.rst : example for network printer Add example for Network Printer --- README.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.rst b/README.rst index fc551e1..a6d5130 100644 --- a/README.rst +++ b/README.rst @@ -65,6 +65,17 @@ The basic usage is: p.barcode('1324354657687', 'EAN13', 64, 2, '', '') p.cut() +Another example for Network printer: +.. code:: python + + from escpos.printer import Network + + kitchen = Network("192.168.1.100") #Printer IP Address + kitchen.text("Hello World\n") + kitchen.barcode('1324354657687', 'EAN13', 64, 2, '', '') + kitchen.cut() + + The full project-documentation is available on `Read the Docs `_. Contributing From f1054876dae32e2c4289fe0c023bb7e85e09bc4e Mon Sep 17 00:00:00 2001 From: Patrick Kanzler Date: Tue, 4 Jun 2019 23:55:33 +0200 Subject: [PATCH 2/3] update authors --- AUTHORS | 1 + 1 file changed, 1 insertion(+) diff --git a/AUTHORS b/AUTHORS index 11276d5..9c14d27 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,4 +1,5 @@ Ahmed Tahri +akeonly Asuki Kono belono Christoph Heuel From edd567785cf2c14decb540726539a43a8afe995a Mon Sep 17 00:00:00 2001 From: Patrick Kanzler Date: Tue, 4 Jun 2019 23:57:19 +0200 Subject: [PATCH 3/3] fix whitespace --- README.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index a6d5130..3eebf6d 100644 --- a/README.rst +++ b/README.rst @@ -65,7 +65,9 @@ The basic usage is: p.barcode('1324354657687', 'EAN13', 64, 2, '', '') p.cut() -Another example for Network printer: + +Another example based on the Network printer class: + .. code:: python from escpos.printer import Network