Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(68)  |  Call(0)  |  Derive(35)  |  Import(33)

src/s/p/Spherebot-Host-GUI-HEAD/InkscapePortable/App/Inkscape/share/extensions/Barcode/EAN8.py   Spherebot-Host-GUI(Download)
'''
 
from Base import Barcode
import sys
 
class Object(Barcode):
	def encode(self, number):
		result = ''
 
		# Rejig the label for use

src/s/p/Spherebot-Host-GUI-HEAD/InkscapePortable/App/Inkscape/share/extensions/Barcode/EAN5.py   Spherebot-Host-GUI(Download)
'''
 
from Base import Barcode
import sys
 
class Object(Barcode):
    def encode(self, number):
        result = []
        self.x += 110.0             # horizontal offset so it does not overlap EAN13
        self.y -= self.height + 5   # move the text to the top

src/s/p/Spherebot-Host-GUI-HEAD/InkscapePortable/App/Inkscape/share/extensions/Barcode/EAN13.py   Spherebot-Host-GUI(Download)
'''
 
from Base import Barcode
import sys
 
class Object(Barcode):
	def encode(self, number):
		result = ''
 
		if len(number) < 12 or len(number) > 13 or not number.isdigit():

src/s/p/Spherebot-Host-GUI-HEAD/InkscapePortable/App/Inkscape/share/extensions/Barcode/RM4CC.py   Spherebot-Host-GUI(Download)
'''
 
from Base import Barcode
 
map = {
class Object(Barcode):
	def encode(self, text):
		result = ''
 
		self.height = 18

src/s/p/Spherebot-Host-GUI-HEAD/InkscapePortable/App/Inkscape/share/extensions/Barcode/Code93.py   Spherebot-Host-GUI(Download)
'''
 
from Base import Barcode
 
chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%'
class Object(Barcode):
	def encode(self, text):
		# start marker  
		bits = self.encode93('MARKER')
 

src/s/p/Spherebot-Host-GUI-HEAD/InkscapePortable/App/Inkscape/share/extensions/Barcode/Code39.py   Spherebot-Host-GUI(Download)
'''
 
from Base import Barcode
 
encoding = {
class Object(Barcode):
	# Convert a text into string binary of black and white markers
	def encode(self, text):
		text       = text.upper()
		self.label = text

src/s/p/Spherebot-Host-GUI-HEAD/InkscapePortable/App/Inkscape/share/extensions/Barcode/Code128.py   Spherebot-Host-GUI(Download)
'''
 
from Base import Barcode
import math
import re
class Object(Barcode):
	def encode(self, text):
		result = ''
		blocks = []
		block  = ''