summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rw-r--r--base.jpgbin0 -> 758434 bytes
-rw-r--r--modes.py8
-rw-r--r--requirements.txt2
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
new file mode 100644
index 0000000..fa1940f
--- /dev/null
+++ b/base.jpg
Binary files differ
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