summaryrefslogtreecommitdiff
path: root/modes.py
diff options
context:
space:
mode:
authorYuval Adam <yuval@y3xz.com>2015-07-07 18:32:13 +0300
committerYuval Adam <yuval@y3xz.com>2015-07-07 18:32:13 +0300
commit70b7aa5c75dfa92ee261f36f93bb0f366e949bb2 (patch)
treea62ef015550d9050b372cb47632b795592d15adf /modes.py
Initial files
Diffstat (limited to 'modes.py')
-rw-r--r--modes.py8
1 files changed, 8 insertions, 0 deletions
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', {})