diff options
| author | Yuval Adam <yuval@y3xz.com> | 2015-07-07 18:32:13 +0300 |
|---|---|---|
| committer | Yuval Adam <yuval@y3xz.com> | 2015-07-07 18:32:13 +0300 |
| commit | 70b7aa5c75dfa92ee261f36f93bb0f366e949bb2 (patch) | |
| tree | a62ef015550d9050b372cb47632b795592d15adf | |
Initial files
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | base.jpg | bin | 0 -> 758434 bytes | |||
| -rw-r--r-- | modes.py | 8 | ||||
| -rw-r--r-- | requirements.txt | 2 |
4 files changed, 11 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..8e7cf36 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# Modes Printer Module diff --git a/base.jpg b/base.jpg Binary files differnew file mode 100644 index 0000000..fa1940f --- /dev/null +++ b/base.jpg diff --git a/modes.py b/modes.py new file mode 100644 index 0000000..e87b837 --- /dev/null +++ b/modes.py @@ -0,0 +1,8 @@ +import cups + +PRINTER = 'Canon_iP7200_series' + + +def print(): + conn = cups.Connection() + conn.printFile(PRINTER, 'base.jpg', 'title', {}) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..cea4b07 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +Pillow==2.9.0 +pycups==1.9.72 |
