Skip to content

meerk40t/meerk40t-barcodes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

meerk40t-barcodes

MeerK40t 0.8+ Barcode extension.

Barcode-Extension

  • Registers the console command: qrcode which will generate a qrcode

Usage: qrcode x_pos y_pos dim code

Arguments:

x_pos X-position of qr-code y_pos Y-position of qr-code dim Width/length of qr-code code Text to create qr-code from

Options:

--boxsize (-x) Boxsize (default 10) --border (-b) Border around qr-code (default 4) --version (-v) size (1..40) --errcorr (-e) error correction, one of L (7%), M (15%), Q (25%), H (30%)

  • Registers the console command: barcode which will generate a barcode

Usage: barcode x_pos y_pos dimx dimy btype code

Arguments:

x_pos X-Position of barcode y_pos Y-Position of barcode dim Width of barcode, may be 'auto' to keep native width dimy Height of barcode, may be 'auto' to keep native height btype Barcode type code The code to process

Options:

--notext (-n) suppress text display

  • GUI-Support The installation of this tool will register a new button in the Design section of MeerK40t:

image

If you click on it then a dialog will pop up allowing you to design a qr-code / a barcode:

image

This will create an element in Meerk40t that can be treated like any other regular path, but which will allow post-creation change of the underlying code (ie the barcode will be regenerated based on the new input).

image

Installation

  • pip install meerk40t-barcodes Or
  • Download into a directory:
  • $ pip install .

Development

  • If you are developing your own extension for meerk40t you will want to use:
  • $ pip install -e . this installs the python module in edit mode which allows you to easily see and experience your changes. Without reinstalling your module.

Acknowledgements