GithubHelp home page GithubHelp logo

probonopd / ptouch-770 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from abelits/ptouch-770

37.0 6.0 5.0 112 KB

Brother P-touch P700 label printer for Linux

License: GNU General Public License v2.0

Makefile 0.78% C 39.41% Python 59.81%
p700 python labels

ptouch-770's Introduction

Brother P-touch P700 label printer for Linux

Building

On Debian/Ubuntu-like systems, compile and install with

sudo apt install git make gcc libudev-dev python3-pil python-usb libusb-1.0-0 python3-gi gir1.2-gtk-3.0
git clone https://github.com/abelits/ptouch-770
cd ptouch-770/
make
strip ptouch-770-write
sudo cp ptouch-770-write ptouch-770-gui /usr/local/bin/

Usage (Python GTK3 GUI)

screenshot

Usage (Python script)

The Python script can be used to print multi-line text like this:

./ptouch-770.py --text "test\nfoo"

Usage (raw tool)

Print a test image with

sudo ptouch-770-write tux-128px-bw.pbm

On the P700, this will result in the printer spitting out approximately 20mm of unprinted label, then cutting the label, then printing the Tux graphic on another approx. 20mm of label and cutting the label again.

To print some text using a 12mm TZe tape:

#!/bin/bash

# The following works for 12mm TZe tapes
convert -size x100 -gravity south -pointsize 72 caption:"Test" write.pbm
ptouch-770-write write.pbm 

ptouch-770's People

Contributors

probonopd avatar

Stargazers

 avatar [redacted] avatar  avatar Julian Wiche avatar Johann Chang avatar  avatar Kristopher Lee avatar adam kaminski avatar Akshay Kumar avatar Benedikt Stonig avatar Steve Groesz avatar  avatar Amman Valley Maker avatar Space avatar  avatar Albert Huang avatar Gregory P. Smith avatar  avatar Richard kj Cross avatar dsl avatar Pierre-Marie Ancèle avatar Rufo Sanchez avatar Kai Kuhlmann avatar  avatar Stewart Russell avatar Liber avatar Radosław Kujawa avatar Falco Weihrauch avatar  avatar Jelly Robot avatar Jeremy Stucki avatar Sean Stevens avatar Gustav von Roth avatar Daniel A. Maierhofer avatar Alexander Ose avatar Tony Habash avatar Sönke J. Peters avatar

Watchers

James Cloos avatar Christoph Schug avatar  avatar MaxPeal avatar  avatar Liber avatar

ptouch-770's Issues

printer not found

I've tried to run sudo ptouch-770-write tux-128px-bw.pbm but I get Brother PT-H500/P700/E500 printer not found. I'm using the printer p-touch p700. Do I need to install something? Thanks you in advance!

ValueError: Namespace Gtk not available

me@host:~$  Downloads/P-touch_P700_Labels-f8624b6.glibc2.17-x86_64.AppImage 
Traceback (most recent call last):
  File "/tmp/.mount_P-toucvc7DVl/usr/bin//ptouch-770-gui", line 7, in <module>
    gi.require_version('Gtk', '3.0')
  File "/tmp/.mount_P-toucvc7DVl/usr/lib/python3/dist-packages/gi/__init__.py", line 79, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gtk not available

What is it missing?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.